fix: publickey

This commit is contained in:
ttk
2024-09-02 18:51:26 +08:00
parent 5caf481b68
commit c09565d673
11 changed files with 1038 additions and 54 deletions

View File

@@ -32,7 +32,7 @@ func RunApi() error {
docs.SwaggerInfo.BasePath = "/api/oneterm/v1"
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
v1 := r.Group("/api/oneterm/v1", auth())
v1 := r.Group("/api/oneterm/v1", Error2Resp(), auth())
{
account := v1.Group("account")
{
@@ -117,6 +117,12 @@ func RunApi() error {
file.GET("/download/:asset_id/:account_id", c.FileDownload)
}
config := v1.Group("config")
{
config.GET("", c.GetConfig)
config.POST("", c.PostConfig)
}
history := v1.Group("history")
{
history.GET("", c.GetHistories)