mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
add setting api (#461)
This commit is contained in:
1 parent
68d7e16773
commit
b4edb4cc95
8 files changed
+143
-90
No files matched your search
@@ -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