Files
electron-egg/app/router/example.js
gaoshuaixing 331a552f73 upload pic
2020-12-29 20:19:20 +08:00

12 lines
338 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);
};