diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-21 18:36:59 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-21 18:36:59 +0300 |
| commit | f817f922fe9a2be5da907e368366f1f9a2977b6e (patch) | |
| tree | ecfabbd9c61cc58168acb4d4a0ac2868a852b87e /web/controller/api.go | |
| parent | 55f7fcd1b3620e6903eb65c17caa79243bf9ff5d (diff) | |
add getClientTraffics api
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/controller/api.go')
| -rw-r--r-- | web/controller/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/controller/api.go b/web/controller/api.go index c64b27bf..c8ad2a67 100644 --- a/web/controller/api.go +++ b/web/controller/api.go @@ -19,6 +19,7 @@ func (a *APIController) initRouter(g *gin.RouterGroup) { g.GET("/list", a.getAllInbounds) g.GET("/get/:id", a.getSingleInbound) + g.GET("/getClientTraffics/:email", a.getClientTraffics) g.POST("/add", a.addInbound) g.POST("/del/:id", a.delInbound) g.POST("/update/:id", a.updateInbound) @@ -39,6 +40,9 @@ func (a *APIController) getAllInbounds(c *gin.Context) { func (a *APIController) getSingleInbound(c *gin.Context) { a.inboundController.getInbound(c) } +func (a *APIController) getClientTraffics(c *gin.Context) { + a.inboundController.getClientTraffics(c) +} func (a *APIController) addInbound(c *gin.Context) { a.inboundController.addInbound(c) } |
