diff options
Diffstat (limited to 'helpers.py')
| -rw-r--r-- | helpers.py | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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" : "*"}) |
