From 70d0ee7ca499c4942254043c85ce8765ea37ef54 Mon Sep 17 00:00:00 2001 From: Corey Date: Sat, 30 Apr 2022 15:17:47 -0700 Subject: [PATCH] Update quickstart.rst 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 --- doc/quickstart.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/quickstart.rst b/doc/quickstart.rst index 3de3ed7f..036788bb 100644 --- a/doc/quickstart.rst +++ b/doc/quickstart.rst @@ -206,7 +206,8 @@ Each one will be routed to your :class:`~Resource`: # or - @api.route('/hello', '/world') + @api.route('/hello') + @api.route('/world') class HelloWorld(Resource): pass