neat-kor
1.0.3 • Public • Published
wrap router for koa
const Koa = require('kor');
const app = new Koa();
// response
app.use(ctx => {
ctx.body = 'Hello Koa';
});
app.get('/get', ctx => {
ctx.body = 'Hello Koa';
});
app.post('/post', ctx => {
ctx.body = 'Hello Koa';
});
app.listen(3000);
Package Sidebar
Install
Weekly Downloads