diff --git a/internal/app/api/router.go b/internal/app/api/router.go index 6540165..9daba50 100644 --- a/internal/app/api/router.go +++ b/internal/app/api/router.go @@ -191,7 +191,7 @@ func (a *API) setupRoutes() { // 告警相关路由组 alarmGroup := authGroup.Group("/alarm") { - thresholdGroup := alarmGroup.Group("/thresholds") + thresholdGroup := alarmGroup.Group("/threshold") { thresholdGroup.POST("/:id/snooze", a.alarmController.SnoozeThresholdAlarm) // 忽略阈值告警 thresholdGroup.POST("/:id/cancel-snooze", a.alarmController.CancelSnoozeThresholdAlarm) // 取消忽略阈值告警