diff --git a/web/controller/api.go b/web/controller/api.go index 6edd7939..c4d9604c 100644 --- a/web/controller/api.go +++ b/web/controller/api.go @@ -11,6 +11,7 @@ type APIController struct { inboundController *InboundController serverController *ServerController Tgbot service.Tgbot + serverService service.ServerService } func NewAPIController(g *gin.RouterGroup) *APIController { @@ -30,7 +31,7 @@ func (a *APIController) initRouter(g *gin.RouterGroup) { // Server API server := api.Group("/server") - a.serverController = NewServerController(server) + a.serverController = NewServerController(server, a.serverService) // Extra routes api.GET("/backuptotgbot", a.BackuptoTgbot)