From c53e539373085105d564dfcc3add0917bdf8da0e Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 15 May 2024 16:22:04 -0700 Subject: [PATCH] updating endpoint to be consistent. support/healthsystem --- backend/pkg/web/server.go | 2 +- frontend/src/app/services/fasten-api.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/pkg/web/server.go b/backend/pkg/web/server.go index e74a1866..44424f86 100644 --- a/backend/pkg/web/server.go +++ b/backend/pkg/web/server.go @@ -94,7 +94,7 @@ func (ae *AppEngine) Setup() (*gin.RouterGroup, *gin.Engine) { api.GET("/glossary/code", handler.GlossarySearchByCode) api.POST("/support/request", handler.SupportRequest) - api.POST("/healthsystem/request", handler.HealthSystemRequest) + api.POST("/support/healthsystem", handler.HealthSystemRequest) secure := api.Group("/secure").Use(middleware.RequireAuth()) { diff --git a/frontend/src/app/services/fasten-api.service.ts b/frontend/src/app/services/fasten-api.service.ts index 067544d7..3d2cf471 100644 --- a/frontend/src/app/services/fasten-api.service.ts +++ b/frontend/src/app/services/fasten-api.service.ts @@ -350,7 +350,7 @@ export class FastenApiService { } requestHealthSystem(requestHealth: FormRequestHealthSystem): Observable { - return this._httpClient.post(`${GetEndpointAbsolutePath(globalThis.location, environment.fasten_api_endpoint_base)}/healthsystem/request`, requestHealth) + return this._httpClient.post(`${GetEndpointAbsolutePath(globalThis.location, environment.fasten_api_endpoint_base)}/support/healthsystem`, requestHealth) .pipe( map((response: ResponseWrapper) => { // @ts-ignore