mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
15 lines
400 B
Go
15 lines
400 B
Go
package settings
|
|
|
|
import (
|
|
"github.com/0xJacky/Nginx-UI/internal/middleware"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitRouter(r *gin.RouterGroup) {
|
|
r.GET("settings/server/name", GetServerName)
|
|
r.GET("settings", GetSettings)
|
|
r.POST("settings", middleware.RequireSecureSession(), SaveSettings)
|
|
|
|
r.GET("settings/auth/banned_ips", GetBanLoginIP)
|
|
r.DELETE("settings/auth/banned_ip", RemoveBannedIP)
|
|
}
|