fix: add missing GET /tasks/tags endpoint to OpenAPI routes

The GetTags handler already exists in TaskController with proper Swagger
annotations, but was only registered in the internal API routes
(/api/v1/tasks/tags) and missing from the OpenAPI routes
(/open2api/v1/tasks/tags). This commit adds the missing route
registration so the endpoint is accessible via Bearer Token.
This commit is contained in:
acooler15
2026-07-14 18:20:55 +08:00
parent 64a735a932
commit e2d3fc5f10
+1
View File
@@ -35,6 +35,7 @@ func registerOpenAPITaskRoutes(g *gin.RouterGroup, c *Controllers) {
tasks.PUT("/:id", c.Task.UpdateTask)
tasks.DELETE("/:id", c.Task.DeleteTask)
tasks.POST("/stop/:logID", c.Task.StopTask)
tasks.GET("/tags", c.Task.GetTags)
}
}