See:
var router = new Router({logging: true, static_route: __dirname});
router.get("/", router.dispatch._404);
I don't want to the path "/" list dirs, but orther path still normal.
I saw the function “dispatch._404” in router.js。I want to call directly,but mistake:
TypeError: Cannot read property '_404' of undefined
See: var router = new Router({logging: true, static_route: __dirname}); router.get("/", router.dispatch._404); I don't want to the path "/" list dirs, but orther path still normal. I saw the function “dispatch._404” in router.js。I want to call directly,but mistake: TypeError: Cannot read property '_404' of undefined
help!