mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
page numbering engine
This commit is contained in:
parent
5de856e579
commit
c5c988709d
9 changed files with 198 additions and 26 deletions
|
@ -191,7 +191,7 @@ func (h *Handler) GetPage(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// GetPages gets all pages for document.
|
||||
func (h *Handler) GetPages(w http.ResponseWriter, r *http.Request) {
|
||||
method := "page.GetPage"
|
||||
method := "page.GetPages"
|
||||
ctx := domain.GetRequestContext(r)
|
||||
|
||||
documentID := request.Param(r, "documentID")
|
||||
|
@ -219,6 +219,8 @@ func (h *Handler) GetPages(w http.ResponseWriter, r *http.Request) {
|
|||
pages = []page.Page{}
|
||||
}
|
||||
|
||||
page.Numberize(pages)
|
||||
|
||||
if err != nil {
|
||||
response.WriteServerError(w, method, err)
|
||||
h.Runtime.Log.Error(method, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue