-
-
Save amandeepmittal/04b0542c8532068a0bd40e9838f3448c 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
// app.js | |
const Koa = require('koa'); | |
const koaBody = require('koa-body'); | |
// create app instance | |
const app = new Koa(); | |
// middleware functions | |
app.use(koaBody()); | |
// Require the router here | |
// use the router here | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment