Skip to content

Commit

Permalink
Fix api path
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Oct 23, 2023
1 parent edddc4d commit 2252b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/cypress/mappings/get-engaged-control-units.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"request": {
"method": "GET",
"urlPath": "/api/v1/missions/engaged-control-units"
"urlPath": "/api/v1/missions/engaged_control_units"
},
"response": {
"status": 200,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const monitorenvMissionApi = monitorenvApi.injectEndpoints({
}),

getEngagedControlUnits: builder.query<ControlUnit.ControlUnit[], void>({
query: () => `missions/engaged-control-units`,
query: () => `missions/engaged_control_units`,
transformErrorResponse: response => new ApiError(GET_ENGAGED_CONTROL_UNITS_ERROR_MESSAGE, response)
}),

Expand Down

0 comments on commit 2252b64

Please sign in to comment.