mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
14 lines
429 B
JavaScript
14 lines
429 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @param {Egg.Application} app - egg application
|
|
*/
|
|
module.exports = app => {
|
|
const { router, controller } = app;
|
|
// open local dir
|
|
router.post('/api/v1/example/openLocalDir', controller.v1.example.openLocalDir);
|
|
// upload file
|
|
router.post('/api/v1/example/uploadFile', controller.v1.example.uploadFile);
|
|
// get ws url
|
|
router.post('/api/v1/example/getWsUrl', controller.v1.example.getWsUrl);
|
|
}; |