This PR introduces a possibility to add params to RMQController decorator.
The first application is a possibility to provide custom msg factory. We use it to call RMQRoute event handler with two arguments: Payload & Context instead of one (msg). In a custom factory, you may define n parameters and provide custom params decorator for them. This does not conflict with middleware/interceptors since it does not process the msg (and propagation to listeners/emitters) but the way msg is applied to the route handler function in the controller.
This PR introduces a possibility to add params to RMQController decorator.
The first application is a possibility to provide custom msg factory. We use it to call RMQRoute event handler with two arguments: Payload & Context instead of one (msg). In a custom factory, you may define n parameters and provide custom params decorator for them. This does not conflict with middleware/interceptors since it does not process the
msg
(and propagation to listeners/emitters) but the waymsg
is applied to the route handler function in the controller.