12345678910111213 |
- 'use strict';
- // 路由配置
- const path = require('path');
- const regPath = path.resolve('app', 'public', 'routerRegister');
- const routerRegister = require(regPath);
- const rkey = 'group';
- const ckey = 'group';
- const keyZh = '工具接口';
- const routes = [{ method: 'get', path: `${rkey}/getGroup`, controller: 'util.getGroup', zh: 'none' }];
- module.exports = app => {
- routerRegister(app, routes, keyZh, rkey, ckey);
- };
|