flask-restx
flask-restx copied to clipboard
Update quickstart.rst
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