I want to create a page in Phoenix that it would have links to all 'live' routes declared in the router.ex file. For example :
...
live "/", PageLive
live "/light", LightLive
live "/license", LicenseLive
live "/sales-dashboard", SalesDashboardLive
live "/search", SearchLive
live "/autocomplete", AutocompleteLive
live "/filter", FilterLive
live "/servers", ServersLive
....
I wanted to create a list with the routes in order to have the path links. Is there a way to get all exisiting live routes dynamically from phoenix router, without writing all again?
Something like mix phx.routes
prints out.