mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
feat: list & block online users
This commit is contained in:
1 parent
dc0132c9aa
commit
6dea3e19d2
10 files changed
+167
-12
No files matched your search
@@ -132,6 +132,9 @@ func routers(r *gin.Engine, frontendDist fs.FS) {
|
||||
auth.GET("/waf", pCommonHandler(listBlockedAddress))
|
||||
auth.POST("/batch-delete/waf", adminHandler(batchDeleteBlockedAddress))
|
||||
|
||||
auth.GET("/online-user", pCommonHandler(listOnlineUser))
|
||||
auth.GET("/online-user/batch-block", adminHandler(batchBlockOnlineUser))
|
||||
|
||||
auth.PATCH("/setting", adminHandler(updateConfig))
|
||||
|
||||
r.NoRoute(fallbackToFrontend(frontendDist))
|
||||
|
||||
Reference in new issue
Block a user