diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-12-10 17:42:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-10 17:42:52 +0300 |
| commit | e3f1d3c892a1af48f27fdc36f273a55f38d13b40 (patch) | |
| tree | b11d0c1ed3c15c8f6f891a5e6df8e021d5db8ab6 /web/controller/api.go | |
| parent | 36cf7c0a8fda915b51e75958ce729fd9a61a5c90 (diff) | |
| parent | 9fbe80f87f950673058f0001b3704251fa8b9243 (diff) | |
huge changes
Diffstat (limited to 'web/controller/api.go')
| -rw-r--r-- | web/controller/api.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/controller/api.go b/web/controller/api.go index 32c639f8..73c36787 100644 --- a/web/controller/api.go +++ b/web/controller/api.go @@ -38,6 +38,8 @@ func (a *APIController) initRouter(g *gin.RouterGroup) { g.POST("/resetAllClientTraffics/:id", a.resetAllClientTraffics) g.POST("/delDepletedClients/:id", a.delDepletedClients) g.GET("/createbackup", a.createBackup) + g.POST("/onlines", a.onlines) + a.inboundController = NewInboundController(g) } @@ -104,3 +106,7 @@ func (a *APIController) delDepletedClients(c *gin.Context) { func (a *APIController) createBackup(c *gin.Context) { a.Tgbot.SendBackupToAdmins() } + +func (a *APIController) onlines(c *gin.Context) { + a.inboundController.onlines(c) +} |
