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