mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Default 405 for POST, plus tests
This commit is contained in:
parent
3a50015566
commit
4a3e8561ab
2 changed files with 10 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ class BaseView:
|
|||
async def options(self, request, *args, **kwargs):
|
||||
return Response.text("Method not allowed", status=405)
|
||||
|
||||
async def post(self, request, *args, **kwargs):
|
||||
return Response.text("Method not allowed", status=405)
|
||||
|
||||
async def put(self, request, *args, **kwargs):
|
||||
return Response.text("Method not allowed", status=405)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue