Fix list id param not working
This commit is contained in:
parent
8856d95275
commit
b6d95bfb63
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue