From e2d3fc5f108d88a8dedffb349a5fda5e066c36fd Mon Sep 17 00:00:00 2001 From: acooler15 Date: Tue, 14 Jul 2026 18:20:55 +0800 Subject: [PATCH] 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. --- internal/router/openapi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/router/openapi.go b/internal/router/openapi.go index 2d6a925..611b88e 100644 --- a/internal/router/openapi.go +++ b/internal/router/openapi.go @@ -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) } }