/api/incident -> /api/incidents
for consistency
This commit is contained in:
parent
e8f8d89aa8
commit
194129a5f2
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ async def create_incident(request):
|
||||||
return response.json(incident)
|
return response.json(incident)
|
||||||
|
|
||||||
|
|
||||||
@bp.patch('/api/incident/<incident_id:int>')
|
@bp.patch('/api/incidents/<incident_id:int>')
|
||||||
@auth_route
|
@auth_route
|
||||||
async def patch_incident(request, incident_id):
|
async def patch_incident(request, incident_id):
|
||||||
"""Patch an existing incident."""
|
"""Patch an existing incident."""
|
||||||
|
@ -219,7 +219,7 @@ async def patch_incident(request, incident_id):
|
||||||
return response.text('', status=204)
|
return response.text('', status=204)
|
||||||
|
|
||||||
|
|
||||||
@bp.post('/api/incident/<incident_id:int>/stages')
|
@bp.post('/api/incidents/<incident_id:int>/stages')
|
||||||
@auth_route
|
@auth_route
|
||||||
async def new_stage(request, incident_id):
|
async def new_stage(request, incident_id):
|
||||||
"""Create a new stage in an incident."""
|
"""Create a new stage in an incident."""
|
||||||
|
|
Loading…
Reference in a new issue