-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestready-to-workseverity-nice-to-haveItem is nice to haveItem is nice to have
Description
Having a default request logic (how the req info is dealt for each type of route) is useful but forcing it is bad. There should be a way to override it for certain use cases.
Suggested UX:
const myRequest = (req) => { return Object.assign({}, req.query, req.params) }
const controllerList = [
{
name: 'lists',
idParameter: 'listId',
getAll: require('../usecases/getLists'),
getById: { usecase: require('../usecases/getLists'), request: myRequest }, // my request
...
}
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestready-to-workseverity-nice-to-haveItem is nice to haveItem is nice to have
Type
Projects
Status
Ready to code