Modifying destination backend in middleware plugin

I have a single entry point, many services and a complex logic of routing.

Are there any chance to switch a destination service in middleware plugin?

Hi @pprishchepa this is not possible at all.
This is a product design decision to never do routing in a middleware. Routing is exclusive to the router in Traefik which means you must declare multiple routers to handle different use cases, they can reference the same service but with different matching rules and middleware chain.

1 Like

@douglasdtm thank you for the clarification.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.