1
0

fix(api tokens)!: make sure task create routes are available to use with the api

BREAKING CHANGE: The api route to create a new task is now /projects/:project/tasks instead of /projects/:project
This commit is contained in:
kolaente
2023-09-06 10:33:52 +02:00
parent d6db498853
commit bfb01898c2
3 changed files with 11 additions and 3 deletions

View File

@ -379,7 +379,7 @@ func registerAPIRoutes(a *echo.Group) {
return &models.Task{}
},
}
a.PUT("/projects/:project", taskHandler.CreateWeb)
a.PUT("/projects/:project/tasks", taskHandler.CreateWeb)
a.GET("/tasks/:projecttask", taskHandler.ReadOneWeb)
a.GET("/tasks/all", taskCollectionHandler.ReadAllWeb)
a.DELETE("/tasks/:projecttask", taskHandler.DeleteWeb)