mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29:42 +02:00
changed delete page to use DELETE verb and more Ember idiomatic
This commit is contained in:
parent
e9def2e71f
commit
0655fab204
6 changed files with 24 additions and 23 deletions
|
@ -23,8 +23,8 @@ import (
|
|||
"github.com/documize/community/core/api/entity"
|
||||
"github.com/documize/community/core/api/request"
|
||||
"github.com/documize/community/core/api/util"
|
||||
"github.com/documize/community/core/section/provider"
|
||||
"github.com/documize/community/core/log"
|
||||
"github.com/documize/community/core/section/provider"
|
||||
"github.com/documize/community/core/utility"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
@ -287,7 +287,7 @@ func DeleteDocumentPage(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
pageID := params["pageID"]
|
||||
|
||||
if len(documentID) == 0 {
|
||||
if len(pageID) == 0 {
|
||||
writeMissingDataError(w, method, "pageID")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue