Basically, I'm trying to figure out how to do recursive URLRoutes. In other-words I have an app which has a controller and that also has a controller. I'm trying to figure out the best way to recursively map all the routes in the app and child controllers and those child controller's children.
Here is more information:
Copied from my repo... https://github.com/Master-Foo/routes/issues/1
Relevant files:
https://github.com/Master-Foo/routes/blob/master/source/app.d
https://github.com/Master-Foo/routes/blob/master/source/foocontroller.d
https://github.com/Master-Foo/routes/blob/master/source/barcontroller.d
App has 2 controllers: FooController and BarController
FooController also has BarController
Routes that work as expected:
http://localhost:8080/foo
http://localhost:8080/bar
404 Routes that don't work as expected:
http://localhost:8080/foo/bar
(Should be the exact same as http://localhost:8080/bar)
Help is appreciated!