Skip to content

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

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)
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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