route index checking fn update
This commit is contained in:
1 parent
2e4b463a36
commit
c27f093e2e
1 file changed
+1
-1
+1
-1
@@ -45,7 +45,7 @@ export function index(fn) {
|
|||||||
|
|
||||||
return function *() {
|
return function *() {
|
||||||
let test = true;
|
let test = true;
|
||||||
if(fn) test = yield fn();
|
if(fn) test = yield fn.apply(this, arguments);
|
||||||
|
|
||||||
if(!test) {
|
if(!test) {
|
||||||
this.status = 404;
|
this.status = 404;
|
||||||
|
|||||||
Reference in new issue
Block a user