route index checking fn update

This commit is contained in:
tmshv committed 2016-03-18 05:37:55 +03:00
1 parent 2e4b463a36
commit c27f093e2e
1 file changed
+1 -1
+1 -1
View File
@@ -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;