Open
Description
An action method can be specified by an array, which represents a stack of Middlewares instead of a single action method.
Each array element is a function or a string corresponding to the name of a Middleware.
Example:
const controller = connectCtr('usersCtr', {
mws: {
isAuthenticated: passportConfig.isAuthenticated
}
})
Example usersCtr
:
module.exports = {
'get_profile': [ 'isAuthenticated', get_profile]
}
Metadata
Metadata
Assignees
Labels
No labels