Jonathan

Results 4 comments of Jonathan

I kinda hacked up Bramus slightly to do just this; return the routes that run rather than execute the callback handlers. The run function returns an array of Route objects,...

I was struggling with this as well. I use Auryn DI as well as keep a "map" of my routes that I load and wanted to add via a loop....

Does this not cover what you need? https://github.com/bramus/router#custom-404