registerInterceptor method
Registers a middleware for a given route in HTTP endpoint.
route
a command route. Base route will be added to this routeaction
an action function that is called when middleware is invoked.
Registers a middleware for a given route in HTTP endpoint.
route
a command route. Base route will be added to this routeaction
an action function that is called when middleware is invoked.