fix routing
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user