diff --git a/src/routes/index.js b/src/routes/index.js index b5771013..5c893e32 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -45,7 +45,7 @@ export function index(fn) { return function *() { let test = true; - if(fn) test = yield fn(); + if(fn) test = yield fn.apply(this, arguments); if(!test) { this.status = 404;