Skip to content

Instantly share code, notes, and snippets.

@prawnsalad
Created February 15, 2021 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prawnsalad/b24a8b07c0dcad7779740050326736de to your computer and use it in GitHub Desktop.
Save prawnsalad/b24a8b07c0dcad7779740050326736de to your computer and use it in GitHub Desktop.
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