Created
February 15, 2021 00:13
-
-
Save prawnsalad/b24a8b07c0dcad7779740050326736de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const KoaRouter = require('@koa/router'); | |
module.exports.init = async function init(hooks, app) { | |
let router = new KoaRouter({ | |
prefix: '/myhttp-api', | |
}); | |
app.webserver.use(router.routes()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment