diff --git a/docs/patterns/singlepageapplications.rst b/docs/patterns/singlepageapplications.rst index 1cb779b3..ef435171 100644 --- a/docs/patterns/singlepageapplications.rst +++ b/docs/patterns/singlepageapplications.rst @@ -19,6 +19,7 @@ The following example demonstrates how to serve an SPA along with an API:: @app.route('/', defaults={'path': ''}) + @app.route('/') @app.route('/') def catch_all(path): return app.send_static_file("index.html")