Skip to content

Ability to use function inside handler.  #40

Open
@ppot

Description

For auth purpose It would be good to be able to pass function to our handler.

This way you can use: get('/account', auth(account)) instead of

module.exports = async (req, res) => {
   await auth(req)
 }

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