1
0
Fork 0
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:
Harvey Kandola 2017-12-10 14:05:23 +00:00
parent 5de856e579
commit c5c988709d
9 changed files with 198 additions and 26 deletions

View file

@ -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)