neat-kor

1.0.3 • Public • Published

kor

wrap router for koa

Install

npm install neat-kor

Hello kor

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);

Readme

Keywords

Package Sidebar

Install

npm i neat-kor

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • zhuqiuyang