diff options
Diffstat (limited to 'helpers.py')
| -rw-r--r-- | helpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -53,8 +53,9 @@ def calculateHashForFile(file, hashobj : object = None) -> object: return hashobj -def notAllowed(): - raise HTTPResponse(f"Cannot {request.method} {request.path}") +@route("<path:path>") +def default(path): + raise HTTPResponse(f"Cannot {request.method} {path}", 405) @route("<path:path>", method="OPTIONS") def options(path): |
