import { PageControllerBase } from "./PageControllerBase" ; import { HapiRequest , HapiResponseToolkit } from "server/types" ; import { FormModel } from "../models" ; export class PageController extends PageControllerBase { constructor ( model , pageDef ) { super ( model , pageDef ) ; } /**
     *  https get getRouteOptions ( ) : { ext : any ; } { return { ext : { onPostHandler : { method : ( _request , h ) => { return h . continue ; } , } , } , } ; } /**
     *  https get postRouteOptions ( ) : { payload ? : any ; ext : any ; } { return { payload : { output : "stream" , parse : true , maxBytes : Number . MAX_SAFE_INTEGER , failAction : "ignore" , } , ext : { onPreHandler : { method : async ( request , h ) => { const { uploadService } = request . services ( [ ] ) ; return uploadService . handleUploadRequest ( request , h ) ; } , } , onPostHandler : { method : async ( _request , h ) => { return h . continue ; } , } , } , } ; } }