Fix deleting task relations
While the request body of a DELETE request *can* have data in it, it is not really supported and pretty much undocumented. As such, it doesn't work in all clients and probably broke with recent updates. This fixes this by moving all parts of the task relation used to identify it in the url. More Info: https://stackoverflow.com/a/299696/10924593
This commit is contained in:
parent
3afedc25f0
commit
eb3a945678
5 changed files with 92 additions and 47 deletions
|
|
@ -392,7 +392,7 @@ func registerAPIRoutes(a *echo.Group) {
|
|||
},
|
||||
}
|
||||
a.PUT("/tasks/:task/relations", taskRelationHandler.CreateWeb)
|
||||
a.DELETE("/tasks/:task/relations", taskRelationHandler.DeleteWeb)
|
||||
a.DELETE("/tasks/:task/relations/:relationKind/:otherTask", taskRelationHandler.DeleteWeb)
|
||||
|
||||
if config.ServiceEnableTaskAttachments.GetBool() {
|
||||
taskAttachmentHandler := &handler.WebHandler{
|
||||
|
|
|
|||
Reference in a new issue