aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmail.com>2018-10-16 18:21:21 +0200
committerFulgen301 <tokmajigeorge@gmail.com>2018-10-16 18:21:21 +0200
commit28afed69d3f5a04c86aa87ad18e15ec55bdc7a82 (patch)
treebf5c818ed3c84e0514090cd3302a41b139bb8d8c
parentfe231dcb0ecfaa9675ffccd75bfd79ad74634fb2 (diff)
downloadparry-28afed69d3f5a04c86aa87ad18e15ec55bdc7a82.tar.gz
parry-28afed69d3f5a04c86aa87ad18e15ec55bdc7a82.zip
Remove default route in its entirety as it breaks more than it's useful
-rw-r--r--helpers.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/helpers.py b/helpers.py
index f3caac6..f917bd3 100644
--- a/helpers.py
+++ b/helpers.py
@@ -53,10 +53,6 @@ def calculateHashForFile(file, hashobj : object = None) -> object:
return hashobj
-@route("<path:path>")
-def default(path):
- raise HTTPResponse(f"Cannot {request.method} {path}", 405)
-
@route("<path:path>", method="OPTIONS")
def options(path):
return HTTPResponse(status=204, headers={"Access-Control-Allow-Origin" : "*", "Access-Control-Allow-Methods" : "GET, POST, HEAD, PUT, PATCH, DELETE", "Access-Control-Allow-Headers" : "*"})