mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
feat: add login failed ban ip list
This commit is contained in:
parent
ccb04c07d8
commit
cff843b82b
43 changed files with 2264 additions and 959 deletions
14
api/settings/router.go
Normal file
14
api/settings/router.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package settings
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func InitRouter(r *gin.RouterGroup) {
|
||||
r.GET("settings/server/name", GetServerName)
|
||||
r.GET("settings", GetSettings)
|
||||
r.POST("settings", SaveSettings)
|
||||
|
||||
r.GET("settings/auth/banned_ips", GetBanLoginIP)
|
||||
r.DELETE("settings/auth/banned_ip", RemoveBannedIP)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue