fix routing

This commit is contained in:
2024-06-13 15:16:46 +07:00
parent 52a161195e
commit d1ff7ba2fb
2 changed files with 2 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ func (ea *DashboardPicHandler) HandleToDetail(c echo.Context) error {
logger.Info("params", zap.Any("id", id))
url := "/dev/detail/" + id
url := "/corp/dashboard_pic/detail/" + id
c.Response().Header().Set("HX-Redirect", url)
return c.String(http.StatusOK, url)

View File

@@ -113,7 +113,7 @@ func SetupRoutesCorporate(app *echo.Echo, appStore db.AppStore) {
// mcu detail
mcudServ := corporate_services.NewMcuDetailServices(appStore)
mcudHandr := corporate_handlers.NewMcuDetailHandler(mcudServ)
corp.GET("/detail/:id", mcudHandr.HandlerShowMcuDetailScreen)
corp.GET("/dashboard_pic/detail/:id", mcudHandr.HandlerShowMcuDetailScreen)
patientHandler := corporate_handlers.NewPatientHandler(l)
corp.GET("/patient", patientHandler.ShowPatient)