mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
12 lines
357 B
JavaScript
12 lines
357 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @param {Egg.Application} app - egg application
|
|
*/
|
|
module.exports = app => {
|
|
const { router, controller } = app;
|
|
// open launch
|
|
router.get('/api/v1/setting/autoLaunchEnable', controller.v1.setting.autoLaunchEnable);
|
|
// close launch
|
|
router.get('/api/v1/setting/autoLaunchDisable', controller.v1.setting.autoLaunchDisable);
|
|
}; |