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

Update quickstart.rst #436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Invincibear
Copy link

Fixes a TypeError when defining two endpoints in one routing declaration

@api.route('/hello', '/world')
class HelloWorld(Resource):
    pass

TypeError: Scaffold.route() takes 2 positional arguments but 3 were given

This works:

@api.route('/hello')
@api.route('/world')
class HelloWorld(Resource):
    pass

Fixes a TypeError when defining two endpoints in one routing declaration
@api.route('/endpoint1', 'endpoint2')
TypeError: Scaffold.route() takes 2 positional arguments but 3 were given
@ziirish ziirish force-pushed the master branch 2 times, most recently from 0db7d06 to 4eaf373 Compare November 1, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant