kemalcr / kemal

Fast, Effective, Simple Web Framework
https://kemalcr.com
MIT License
3.65k stars 189 forks source link

a list of all configured routes? #672

Closed vectorselector closed 9 months ago

vectorselector commented 9 months ago

Not a bug:

I would like to obtain a list of all configured routes After a short time reading the source code, I am no wiser. Surely, the Kemal instance that gets run can report upon it's configured routes? pp Kemal.config.handlers gives me an empty array...

vectorselector commented 9 months ago

Kemal::RouteHandler::INSTANCE.routes

or

Kemal.config.setup

will give a list