New features: TG Telegram robot terminal [One-click configuration] and [Subscription conversion]
This commit is contained in:
parent
370ce029ce
commit
3fd1ac07f1
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user