Open
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
Labels
No labels