aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Linderud <morten@linderud.pw>2019-01-22 17:05:31 +0100
committerMorten Linderud <morten@linderud.pw>2019-01-22 17:08:39 +0100
commitaa28da05ce5514e1336f105124cc63cd67c22511 (patch)
tree3d03c1ff55a833ec40180612ad8372a7f45b0cc8
parent115fe3455e6c561723cf3ae0de1856a2dd661d8e (diff)
Removed `PUT` from `POST` method
Although nice to have, this isn't compatible with the implementation of the web service.
-rwxr-xr-xtemplating/templating.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/templating/templating.py b/templating/templating.py
index 03ad180..03b7dc9 100755
--- a/templating/templating.py
+++ b/templating/templating.py
@@ -62,7 +62,7 @@ def root_get(path):
return body, 200
-@app.route("/<path>", methods=["POST", "PUT"])
+@app.route("/<path>", methods=["POST"])
def root_post(path):
updateData()
try: