Files
electron-egg/app/controller/v1/setting.js
gaoshuaixing bc6aa4fcd1 1
2020-12-22 15:39:16 +08:00

31 lines
483 B
JavaScript

'use strict';
const BaseController = require('../base');
class SettingController extends BaseController {
async autoLaunchEnable() {
const self = this;
const { ctx } = this;
const data = {
title: 'hello electron-egg'
};
self.sendSuccess(data);
}
async autoLaunchDisable() {
const self = this;
const { ctx } = this;
const data = {
title: 'hello'
};
self.sendSuccess(data);
}
}
module.exports = SettingController;