diff --git a/src/Redux/api.tsx b/src/Redux/api.tsx index 2667521950b..a8ba0068e0b 100644 --- a/src/Redux/api.tsx +++ b/src/Redux/api.tsx @@ -835,11 +835,11 @@ const routes = { method: "GET", }, getAssetService: { - path: "/api/v1/asset/{asset_external_id}/service_records/{external_id}", + path: "/api/v1/asset/{asset_external_id}/service_records/{external_id}/", method: "GET", }, updateAssetService: { - path: "/api/v1/asset/{asset_external_id}/service_records/{external_id}", + path: "/api/v1/asset/{asset_external_id}/service_records/{external_id}/", method: "PUT", }, diff --git a/src/Redux/fireRequest.tsx b/src/Redux/fireRequest.tsx index 51907affab8..d570d8bdcbb 100644 --- a/src/Redux/fireRequest.tsx +++ b/src/Redux/fireRequest.tsx @@ -69,7 +69,7 @@ export const fireRequest = ( const request = Object.assign({}, (routes as any)[key]); if (path.length > 0) { - request.path += path.join("/"); + request.path += path.join("/") + "/"; } if (request.method === undefined || request.method === "GET") { @@ -193,7 +193,7 @@ export const legacyFireRequest = ( const request = Object.assign({}, (routes as any)[key]); if (path.length > 0) { - request.path += path.join("/"); + request.path += path.join("/") + "/"; } if (request.method === undefined || request.method === "GET") {