From c27f093e2ea45304aa98144da834382fcf986154 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Fri, 18 Mar 2016 05:37:55 +0300 Subject: [PATCH] route index checking fn update --- src/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;