race.js 644 B

12345678910111213141516
  1. 'use strict';
  2. // 路由配置
  3. const path = require('path');
  4. const regPath = path.resolve('app', 'public', 'routerRegister');
  5. const routerRegister = require(regPath);
  6. const rkey = 'race';
  7. const ckey = 'race';
  8. const keyZh = '比赛业务';
  9. const routes = [
  10. { method: 'post', path: `${rkey}/ctbj`, controller: `${ckey}.coachToBeJudge`, name: `${ckey}coachToBeJudge`, zh: `${keyZh}-教练成为本校裁判` },
  11. { method: 'post', path: `${rkey}/utbj`, controller: `${ckey}.userToBeJudge`, name: `${ckey}userToBeJudge`, zh: `${keyZh}-教练成为本校裁判` },
  12. ];
  13. module.exports = app => {
  14. routerRegister(app, routes, keyZh, rkey, ckey);
  15. };