mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
feat: register task duplicate API route
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user