New features: TG Telegram robot terminal [One-click configuration] and [Subscription conversion]

This commit is contained in:
心隨緣動
2025-10-07 23:59:17 +08:00
committed by GitHub
parent 370ce029ce
commit 3fd1ac07f1
+2 -1
View File
@@ -11,6 +11,7 @@ type APIController struct {
inboundController *InboundController inboundController *InboundController
serverController *ServerController serverController *ServerController
Tgbot service.Tgbot Tgbot service.Tgbot
serverService service.ServerService
} }
func NewAPIController(g *gin.RouterGroup) *APIController { func NewAPIController(g *gin.RouterGroup) *APIController {
@@ -30,7 +31,7 @@ func (a *APIController) initRouter(g *gin.RouterGroup) {
// Server API // Server API
server := api.Group("/server") server := api.Group("/server")
a.serverController = NewServerController(server) a.serverController = NewServerController(server, a.serverService)
// Extra routes // Extra routes
api.GET("/backuptotgbot", a.BackuptoTgbot) api.GET("/backuptotgbot", a.BackuptoTgbot)