Skip to content
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

Make it easier to add routes via add_url_rule #11

Closed
cgrinds opened this issue Apr 19, 2010 · 1 comment
Closed

Make it easier to add routes via add_url_rule #11

cgrinds opened this issue Apr 19, 2010 · 1 comment

Comments

@cgrinds
Copy link
Contributor

cgrinds commented Apr 19, 2010

add_url_rule should accept an optional view function. Currently you need to do two steps to associate a rule, endpoint and view_function.

This issue is suggesting that it should only take one step. Replace add_url_rule(self, rule, endpoint, *_options) with add_url_rule(self, rule, endpoint, view_func=None, *_options)

@mitsuhiko
Copy link
Contributor

Fixed now, patch applied

erishforG added a commit to erishforG/flask that referenced this issue Apr 1, 2015
Thread Locals paragraph translation
lfernandez55 pushed a commit to lfernandez55/flask that referenced this issue Jun 1, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants