lucky_router
lucky_router copied to clipboard
Provide way to access all stored routes, methods, and payload
Lucky provides a way to print all routes to the console that shows the path, request method, and which action it's connected to
https://github.com/luckyframework/lucky/blob/dfdcc9e01e69eb8d38ed47d670357ebe551adbd1/tasks/routes.cr#L26
But that is fulfilled by essentially duplicating route storage because LuckyRouter doesn't have a way to access all available routes
https://github.com/luckyframework/lucky/blob/dfdcc9e01e69eb8d38ed47d670357ebe551adbd1/src/lucky/router.cr#L3
Without duplicating stored routes, it should be possible to piece the stored routes back together for this kind of functionality.