-
Hi The correct URL is https://customer1.domain.com/api/v1/connection/status. But one of the client applications is generating https://customer1.domain.com//api/v1/connection/status. If you notice, there are 2 forward slashes before api! Is there any way I can match both of these variants (single or double slashes) in the path using regular expression? I do not want to duplicate the route. My current code in the configuration is : Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The configuration you are using ( YARP will forward these requests as-is. That is, the backend destination will also see |
Beta Was this translation helpful? Give feedback.
The configuration you are using (
"/api/{**catch-all}"
) will already match both/api/foo
and/api//bar
.YARP will forward these requests as-is. That is, the backend destination will also see
/api/foo
and/api//bar
.Are you looking to configure YARP such that it accepts both, but forwards them on in a normalized format (
/api/foo
and/api/bar
)?