'use strict'; // 路由配置 const path = require('path'); const regPath = path.resolve('app', 'public', 'routerRegister'); const routerRegister = require(regPath); const rkey = 'statistics/admin'; const ckey = 'statistics.admin'; const keyZh = '中台统计'; const routes = [{ method: 'get', path: `${rkey}/todo`, controller: `${ckey}.todo`, name: `${ckey}Todo`, zh: `${keyZh}待办查询` }]; module.exports = app => { routerRegister(app, routes, keyZh, rkey, ckey); };