mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
dev: add ddns list api (#445)
This commit is contained in:
@@ -59,12 +59,12 @@ func routers(r *gin.Engine) {
|
||||
optionalAuth := api.Group("", optionalAuthMiddleware(authMiddleware))
|
||||
optionalAuth.GET("/ws/server", commonHandler[any](serverStream))
|
||||
optionalAuth.GET("/server-group", commonHandler[[]model.ServerGroup](listServerGroup))
|
||||
optionalAuth.GET("/ddns", listDDNS) // TODO
|
||||
|
||||
auth := api.Group("", authMiddleware.MiddlewareFunc())
|
||||
auth.GET("/refresh_token", authMiddleware.RefreshHandler)
|
||||
auth.PATCH("/server/:id", commonHandler[any](editServer))
|
||||
|
||||
auth.GET("/ddns", commonHandler[[]model.DDNSProfile](listDDNS))
|
||||
auth.POST("/ddns", commonHandler[any](newDDNS))
|
||||
auth.PATCH("/ddns/:id", commonHandler[any](editDDNS))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user