Skip to content

Koa-js/neat-kor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published