Skip to content

How to call function in router.js #17

@yinxufeng

Description

@yinxufeng

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions