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: