Route plugins : include and exclude only takes the path ? #1674
-
Hello, I am trying to get a better understanding of how I could use plugins on routes. From what I understand, the Include and Exclude configuration only use the path of the request. Wouldn't it be useful to add the request method too ? For example, if I want to use the RBAC plugin to :
With the current ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @quentinproust, You're right, there is currently no way of doing this with a single route. You can indeed do this by creating multiple routes (using the Allowed HTTP methods plugin. This is a design choice to avoid creating very complex route definition that would be quite hard to understand/debug. |
Beta Was this translation helpful? Give feedback.
Hi @quentinproust,
You're right, there is currently no way of doing this with a single route. You can indeed do this by creating multiple routes (using the Allowed HTTP methods plugin.
This is a design choice to avoid creating very complex route definition that would be quite hard to understand/debug.