fixed path to get all tasks (echo bug)

This commit is contained in:
konrad 2018-12-02 19:31:03 +01:00
parent fc17232819
commit 8e5ff72c4a
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 5 additions and 5 deletions

View file

@ -107,13 +107,13 @@ Authorization: Bearer {{auth_token}}
###
# Get all pending tasks
GET http://localhost:8080/api/v1/tasks
GET http://localhost:8080/api/v1/tasks/all
Authorization: Bearer {{auth_token}}
###
# Get all pending tasks with priorities
GET http://localhost:8080/api/v1/tasks/desc
GET http://localhost:8080/api/v1/tasks/all/desc
Authorization: Bearer {{auth_token}}
###
@ -125,7 +125,7 @@ GET http://localhost:8080/api/v1/tasks/caldav
###
# Update a task
POST http://localhost:8080/api/v1/tasks/30
POST http://localhost:8080/api/v1/tasks/32
Authorization: Bearer {{auth_token}}
Content-Type: application/json

View file

@ -162,8 +162,8 @@ func RegisterRoutes(e *echo.Echo) {
},
}
a.PUT("/lists/:list", taskHandler.CreateWeb)
a.GET("/tasks", taskHandler.ReadAllWeb)
a.GET("/tasks/:sort", taskHandler.ReadAllWeb)
a.GET("/tasks/all", taskHandler.ReadAllWeb)
a.GET("/tasks/all/:sort", taskHandler.ReadAllWeb)
a.DELETE("/tasks/:listtask", taskHandler.DeleteWeb)
a.POST("/tasks/:listtask", taskHandler.UpdateWeb)