example.js 429 B

1234567891011121314
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. // open local dir
  8. router.post('/api/v1/example/openLocalDir', controller.v1.example.openLocalDir);
  9. // upload file
  10. router.post('/api/v1/example/uploadFile', controller.v1.example.uploadFile);
  11. // get ws url
  12. router.post('/api/v1/example/getWsUrl', controller.v1.example.getWsUrl);
  13. };