so i have some nested routes ``` routes( "/"...
# http4k
n
so i have some nested routes
Copy code
routes(
     "/" bind Method.GET moreRoutes,
     "/api" bind Method.GET otherRoutes,
)
And then in
moreRoutes
I have
Copy code
routes(
    "/" bind Method.GET to helloWorld,
    "/arbitrary" bind Method.GET to ...
When I go to
localhost/
, i expect to get hello world, but i actually have to do 2 slashes, like
localhost//
in order to get hello world. What I want to do is have any duplicate “/” condensed into one. so that each “subroute” has a different “root” behavior. Hopefully that makes sense. I tried doing
"" bind Method.GET...
, but that doesn’t seem to do it. How can I accomplish this with nested routes so that the main
/
route is carried through to subroutes like i describe above