I quite often run into a situation where I need a GET route with two directories.
Something like this:
hello/world
another/place/in/space
In a route when we use (:all) we need something to separate the two strings. Using (:all)/(:all) will not work, because then it will be hello/world/another/place/in and space.
It would be possible to do something like this:
(mybe the slash needs to be urlencoded, not sure)
hello/world?locataion=another/place/in/space
Another solution is to do like this:
hello/world/-/another/place/in/space
I like the last one. Do you think it’s fine or do you have a better solution?