'use strict'; // 路由配置 const path = require('path'); const regPath = path.resolve('app', 'public', 'routerRegister'); const routerRegister = require(regPath); const rkey = 'statistics/bill'; const ckey = 'statistics.bill'; const keyZh = '账单'; const routes = [{ method: 'get', path: `${rkey}/getBill`, controller: `${ckey}.getBill`, name: `${ckey}getBill`, zh: `${keyZh}账单` }]; module.exports = app => { routerRegister(app, routes, keyZh, rkey, ckey); };