Am 16.01.2016 um 03:14 schrieb Master-Foo:

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/bar
controller.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!

For nested interfaces, you currently need to define a property (or
function) to get them registered:

class FooController {
     // ...
     @property BarController bar() { return bar_controller; }
     // ...
}

That should be all that is missing.