feat: 初始化并配置 Gin 路由器,注入所有仓库、服务和处理器的依赖
This commit is contained in:
@@ -250,9 +250,6 @@ func Setup(db *gorm.DB, yunAPIClient *service.YunAPIClient, cfg *config.Config)
|
|||||||
protected.POST("/app-lock/disable", appLockHandler.DisableLock)
|
protected.POST("/app-lock/disable", appLockHandler.DisableLock)
|
||||||
protected.POST("/app-lock/password/change", appLockHandler.ChangePassword)
|
protected.POST("/app-lock/password/change", appLockHandler.ChangePassword)
|
||||||
|
|
||||||
// Register notification routes
|
|
||||||
notificationHandler.RegisterRoutes(protected)
|
|
||||||
|
|
||||||
// Register health score routes
|
// Register health score routes
|
||||||
healthScoreHandler.RegisterRoutes(protected)
|
healthScoreHandler.RegisterRoutes(protected)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user