From 9e540f5628b78bea18ced4ade3fac3c4a8407ef0 Mon Sep 17 00:00:00 2001 From: Ben Felder <20211140+pykong@users.noreply.github.com> Date: Thu, 22 Feb 2018 21:29:26 +0100 Subject: [PATCH] Fixed syntax errors... ... colons must not terminate decorators! --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39947fc..e93a48d 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Version: 1.x.x storage = Storage() storage.init_app(app) - @app.route("/upload", methods=["POST", "GET"]): + @app.route("/upload", methods=["POST", "GET"]) def upload(): if request.method == "POST": file = request.files.get("file") @@ -53,7 +53,7 @@ Version: 1.x.x # A download endpoint, to download the file - @app.route("/download/"): + @app.route("/download/") def download(object_name): my_object = storage.get(object_name) if my_object: @@ -246,7 +246,7 @@ It will also setup a server endpoint when STORAGE_PROVIDER == LOCAL storage = Storage() storage.init_app(app) - @app.route("/upload", methods=["POST", "GET"]): + @app.route("/upload", methods=["POST", "GET"]) def upload(): if request.method == "POST": file = request.files.get("file") @@ -532,7 +532,7 @@ Return a URL that triggers the browser download of the file. On cloud providers # or with flask - @app.route("/download/"): + @app.route("/download/") def download(object_name): my_object = storage.get(object_name) if my_object: