             }
             return SiteResponse(status: .NotFound, session: session)
         })
-
+        
         addRoute(method: .post, uri: "/comic/{cid}/page/{pidx}/update", handler: { (controller: SiteController, session: SessionInfo, request: HTTPRequest, response: HTTPResponse) in
-
+            
             if let cid = UInt32(request.urlVariables["cid"] ?? "0"), cid > 0 {
                 if let pidx = UInt32(request.urlVariables["pidx"] ?? "0"), pidx > 0 {
                     if let content = request.param(name: "content") {

            }
            return SiteResponse(status: .NotFound, session: session)
        })

        addRoute(method: .get, uri: "/comic/{cid}/page/{pidx}/edit", handler: { (controller: SiteController, session: SessionInfo, request: HTTPRequest, response: HTTPResponse) in

            if let cid = UInt32(request.urlVariables["cid"] ?? "0"), cid > 0 {
                if let pidx = UInt32(request.urlVariables["pidx"] ?? "0"), pidx > 0 {
                    return controller.editPage(session: session, comicId: cid, pageIndex: pidx)


                            let localname = "\(UUID().string).\(fileExtension)"
                            return controller.postAddPage(session: session, comicId: cid, title: title, description: description, imgWebURL: "/images/"+localname, onSeccuss: { (pageId: UInt32) in
                                
                                try controller.toolAddFile(pageId: pageId, filename: upload.fileName, localname: localname, mimetype: upload.contentType, size: UInt32(upload.fileSize))
                                guard image.write(to: URL(fileURLWithPath: "webroot/images/"+localname), quality: 75) else {
                                    throw WebFrameworkError.RuntimeError("Failed write image file")
