koa-lite/examples/hello-world.js

10 lines
118 B
JavaScript
Raw Normal View History

2013-11-10 23:09:27 +00:00
var koa = require('..');
var app = koa();
app.use(function *(){
this.body = 'Hello World';
});
app.listen(3000);