router.ts 405 B

123456789101112131415
  1. module.exports = app => {
  2. const { router, controller } = app;
  3. router.get('/version', controller.common.version.version);
  4. };
  5. module.exports = app => {
  6. console.log(app.router);
  7. // const subRouter = app.router.namespace('/common');
  8. require('./router/common')(app);
  9. };
  10. module.exports = app => {
  11. // const subRouter = app.router.namespace('/api');
  12. require('./router/api')(app);
  13. };