From 77fdf1b84b27f80f4f332a26e9d7cf1ad032f211 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 4 Mar 2026 16:00:24 +0100 Subject: [PATCH] feat: register task duplicate API route --- pkg/routes/routes.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index cca423044..d6bc1e8a3 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -469,6 +469,13 @@ func registerAPIRoutes(a *echo.Group) { a.DELETE("/tasks/:projecttask", taskHandler.DeleteWeb) a.POST("/tasks/:projecttask", taskHandler.UpdateWeb) + taskDuplicateHandler := &handler.WebHandler{ + EmptyStruct: func() handler.CObject { + return &models.TaskDuplicate{} + }, + } + a.PUT("/tasks/:projecttask/duplicate", taskDuplicateHandler.CreateWeb) + taskUnreadStatusHandler := &handler.WebHandler{ EmptyStruct: func() handler.CObject { return &models.TaskUnreadStatus{}