mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
add setting api (#461)
This commit is contained in:
@@ -55,6 +55,8 @@ func routers(r *gin.Engine) {
|
||||
optionalAuth.GET("/ws/server", commonHandler(serverStream))
|
||||
optionalAuth.GET("/server-group", commonHandler(listServerGroup))
|
||||
|
||||
optionalAuth.GET("/setting", commonHandler(listConfig))
|
||||
|
||||
auth := api.Group("", authMiddleware.MiddlewareFunc())
|
||||
|
||||
auth.GET("/refresh_token", authMiddleware.RefreshHandler)
|
||||
@@ -114,6 +116,8 @@ func routers(r *gin.Engine) {
|
||||
auth.PATCH("/nat/:id", commonHandler(updateNAT))
|
||||
auth.POST("/batch-delete/nat", commonHandler(batchDeleteNAT))
|
||||
|
||||
auth.PATCH("/setting", commonHandler(updateConfig))
|
||||
|
||||
r.NoRoute(fallbackToFrontend)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user