Skip to content

Pass parameters to handler as argument (not in context) #4

@ghost

Description

It would be easier if the params were passed into the handler as an actual argument so the context could be bound to another object.

router.add('users/:userID', function (params) {
    console.log(params.userID)
});

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