index.js 448 B

12345678910111213141516171819202122
  1. 'use strict';
  2. import home from './home'
  3. import v1 from './v1'
  4. import v2 from './v2'
  5. import v4 from './v4'
  6. import ugc from './ugc'
  7. import bos from './bos'
  8. import shopping from './shopping'
  9. export default app => {
  10. app.get('/', (req, res, next) => {
  11. res.redirect('/home');
  12. });
  13. app.use('/home', home);
  14. app.use('/v1', v1);
  15. app.use('/v2', v2);
  16. app.use('/v4', v4);
  17. app.use('/ugc', ugc);
  18. app.use('/bos', bos);
  19. app.use('/shopping', shopping);
  20. }