import * as Page from './model.mjs' import * as security from './security.mjs' export default class PageRoutes { constructor(opts = {}) { Object.assign(this, { Page: opts.Page || Page, security: opts.security || security, }) } /** GET: /api/pagetree */ async getPageTree(ctx) { ctx.body = await this.Page.getTree(ctx) } }