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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)