dev: add ddns list api (#445)

This commit is contained in:
UUBulb
2024-10-21 16:22:30 +08:00
committed by GitHub
parent aa0d570b2b
commit 5efd995992
6 changed files with 79 additions and 25 deletions

View File

@@ -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))