PUT /api/incidents -> POST /api/incidents
This commit is contained in:
parent
11df05b998
commit
cea693102f
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ async def get_incidents(request, page: int):
|
|||
return response.json(res)
|
||||
|
||||
|
||||
@bp.put('/api/incidents')
|
||||
@bp.post('/api/incidents')
|
||||
@auth_route
|
||||
async def create_incident(request):
|
||||
"""Create a new incident and put it as ongoing by default."""
|
||||
|
|
Loading…
Reference in a new issue