fix: agent page and agent cmd

This commit is contained in:
engigu
2025-12-30 20:29:04 +08:00
parent b2a4d5fec6
commit 7f83401b2e
7 changed files with 119 additions and 125 deletions
+3 -3
View File
@@ -209,9 +209,9 @@ func Setup(c *Controllers) *gin.Engine {
agents.POST("/:id/token", c.Agent.RegenerateToken)
agents.POST("/:id/update", c.Agent.ForceUpdate)
// 令牌管理
agents.GET("/regcodes", c.Agent.ListRegCodes)
agents.POST("/regcodes", c.Agent.CreateRegCode)
agents.DELETE("/regcodes/:id", c.Agent.DeleteRegCode)
agents.GET("/tokens", c.Agent.ListTokens)
agents.POST("/tokens", c.Agent.CreateToken)
agents.DELETE("/tokens/:id", c.Agent.DeleteToken)
}
}