I want to write a custom route with a custom function, and enable the default parameters just as nestjsx would do.
In the past, I did override a route to provide a custom function:
@Override('getManyBase')
@ApiOperation({
summary: 'Get all notifications of the user logged in',
})
async getAllUserNotifications(@ParsedRequest() parsedRequest: CrudRequest) {
return this.service.getUserNotifications(parsedRequest);
}
And that brought me the parameters in the documentation just as I needed:
However, this time I can't override the default route (because I need it), but I want to create another route and also use the default parameters, yet I haven't found a way to re-use them. Is it possible?
I want to write a custom route with a custom function, and enable the default parameters just as nestjsx would do.
In the past, I did override a route to provide a custom function:
And that brought me the parameters in the documentation just as I needed:
However, this time I can't override the default route (because I need it), but I want to create another route and also use the default parameters, yet I haven't found a way to re-use them. Is it possible?