Closed ajxchapman closed 4 years ago
I think this is best addressed by adding a remap_url
, HTTP route configuration option with a regex to grok the remapped URL from the original url
Currently using the following
"route" : "^/httpbin/.*",
"url" : {
"base" : "/httpbin",
"remap" : "/httpbin/(.*)"
}
This feels like a lot of unnecessary re-definition, is there a better way?
Settling on something more like the below when a remap is required:
"route" : "^/httpbin/.*",
"path" : {
"path" : "./scripts/httpbin.py",
"base" : "/httpbin"
},
But still allowing the usual path
when a remap is not needed:
"route" : "^/httpbin/.*",
"path" : "./files/wwwroot/blah"
Closed out in 0afea2f46e66501a40cc31e1ad6f1a408479c22b
The following routes can all map to the same script:
How should the URL be remapped in each instance?