New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built in routes command #1446
Built in routes command #1446
Conversation
Django has a lot of stuff that works surprisingly well, but that's a bad argument. I like the command, but what exactly are you using it for? |
|
😼 |
+1 I agree - one of the first things I add as well - just nice to get an overview since the routes are spread all over |
…e app. Orderable by rules, endpoints and methods. Shows up in the builtin command list.
I rebased it to master |
What about creating a package (e.g. Flask-Routes) that would register such command and you can just add an requirement to your project?
|
You would rather "left-paddify" this simple command? I think that's a bad idea to make such a simple thing a dependency rather than include it as a command. To quote Rob Pike: "A little copying is better than a little dependency." |
Thanks for starting this. I liked the general idea but decided to rework it in #2259. |
I don't want to spam the builtin command namespace (anyway, why not? Django have a lot of builtin commands and works pretty well) but this is the first command I always implement when I start using flask, and my collegues were doing this also.
It shows all the endpoints registered for the app. Routes can be ordered by rules, endpoints and methods.
This is a WIP, because I did not wrote tests for it yet and did not tried with 2.6 and 2.7.
I would like to have some feedback on this and I can work out the details.