Fix list id param not working

This commit is contained in:
kolaente 2020-06-30 22:35:42 +02:00
parent 8856d95275
commit b6d95bfb63
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ import (
// ListDuplicate holds everything needed to duplicate a list
type ListDuplicate struct {
// The list id of the list to duplicate
ListID int64 `json:"-" param:"list"`
ListID int64 `json:"-" param:"listid"`
// The target namespace ID
NamespaceID int64 `json:"namespace_id,omitempty"`

View File

@ -309,7 +309,7 @@ func registerAPIRoutes(a *echo.Group) {
return &models.ListDuplicate{}
},
}
a.PUT("/lists/:list/duplicate", listDuplicateHandler.CreateWeb)
a.PUT("/lists/:listid/duplicate", listDuplicateHandler.CreateWeb)
taskHandler := &handler.WebHandler{
EmptyStruct: func() handler.CObject {