diff --git a/examples/hello-world.js b/examples/hello-world.js new file mode 100644 index 0000000..c6786f7 --- /dev/null +++ b/examples/hello-world.js @@ -0,0 +1,9 @@ + +var koa = require('..'); +var app = koa(); + +app.use(function *(){ + this.body = 'Hello World'; +}); + +app.listen(3000);