diff options
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +// app.js +const Koa = require('koa'); +const { koaBody } = require('koa-body'); + +const app = new Koa(); + +// middleware +app.use(koaBody()); + +// Require the routers +let paths = require('./paths.js'); + +// use the routes +app.use(paths.routes()); + +app.listen(3000); |
