12345678910111213 |
- 'use strict';
- // 路由配置
- const path = require('path');
- const regPath = path.resolve('app', 'public', 'routerRegister');
- const routerRegister = require(regPath);
- const rkey = 'util';
- const ckey = 'util';
- const keyZh = '工具接口';
- const routes = [{ method: 'post', path: `${rkey}/checkCanBuy`, controller: `${ckey}.checkCanBuy`, zh: `${keyZh}-检查是否可以购买商品` }];
- module.exports = app => {
- routerRegister(app, routes, keyZh, rkey, ckey);
- };
|