leonhardt
01/24/2025, 8:02 PMroutes(
"/something" bind Method.GET to somethingHandler,
"/api/" bind proxyClient,
"/api/{path:.*}" bind proxyClient,
)
I've found that I have to declare both the /api/
and /api/{path:.*}
routes to match the /api path and all subpaths.
It feels a little silly I couldn't find a way to express this in one path definition. Is there an approach or syntax I've overlooked?s4nchez
01/25/2025, 4:44 PMdave
01/27/2025, 2:17 PMleonhardt
01/27/2025, 6:39 PM.*
syntax made me think it would work because if it that expression were regex, it would match no path as well, (as opposed to .+
).leonhardt
01/27/2025, 6:39 PM