Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza7@gmail.com>2023-12-04 21:13:21 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2023-12-04 21:13:21 +0300
commitf734c821d6e62eca5a206b6048f3cd7d65f3e665 (patch)
treed1904c2b8566f9b9e33889ff9af8da5c53564859 /web/controller
parent8dc23f97b647b182df3faecff975498fee345e2c (diff)
online users backend #1286
Diffstat (limited to 'web/controller')
-rw-r--r--web/controller/inbound.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/controller/inbound.go b/web/controller/inbound.go
index 8b64fe6e..0fa54cd4 100644
--- a/web/controller/inbound.go
+++ b/web/controller/inbound.go
@@ -37,6 +37,7 @@ func (a *InboundController) initRouter(g *gin.RouterGroup) {
g.POST("/resetAllTraffics", a.resetAllTraffics)
g.POST("/resetAllClientTraffics/:id", a.resetAllClientTraffics)
g.POST("/delDepletedClients/:id", a.delDepletedClients)
+ g.POST("/onlines", a.onlines)
}
func (a *InboundController) getInbounds(c *gin.Context) {
@@ -278,3 +279,7 @@ func (a *InboundController) delDepletedClients(c *gin.Context) {
}
jsonMsg(c, "All delpeted clients are deleted", nil)
}
+
+func (a *InboundController) onlines(c *gin.Context) {
+ jsonObj(c, a.inboundService.GetOnlineClinets(), nil)
+}