Skip to content

Commit

Permalink
Merge c2d7d6a into 35cced5
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenGremlin committed Dec 23, 2015
2 parents 35cced5 + c2d7d6a commit 2de8678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var app = new Koa();

app.use(async function (ctx, next){
if ('/' == ctx.path) return ctx.body = 'Try GET /package.json';
await send(ctx, __dirname + '/package.json');
await send(ctx, 'package.json');
})

app.listen(3000);
Expand All @@ -79,7 +79,7 @@ var app = koa();

app.use(function *(){
if ('/' == this.path) return this.body = 'Try GET /package.json';
yield send(this, __dirname + '/package.json');
yield send(this, 'package.json');
})

app.listen(3000);
Expand Down

0 comments on commit 2de8678

Please sign in to comment.