-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapi.js
More file actions
44 lines (43 loc) · 1.08 KB
/
Copy pathapi.js
File metadata and controls
44 lines (43 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'use strict';
module.exports = {
// retrieve logs
async getLogs({ homey }) {
return homey.app.getLogs();
},
// delete logs
async deleteLogs({ homey }) {
return homey.app.deleteLogs();
},
// get resolution list
async getResolutions({ homey }) {
return homey.app.getResolutions();
},
// get app list
async getAppList({ homey }) {
return homey.app.getAppList();
},
// stop export
async stopExport({ homey }) {
return homey.app.stopExport();
},
// make full backup from frontend
async exportAll({ homey, body }) {
return homey.app.exportAll(body.resolution);
},
// make app backup from frontend
async exportApp({ homey, body }) {
return homey.app.exportApp(body.appId, body.resolution);
},
// test SMB settings from frontend
async testSmb({ homey, body }) {
return homey.app.testSmb(body);
},
// test FTP settings from frontend
async testFTP({ homey, body }) {
return homey.app.testFTP(body);
},
// test WebDAV settings from frontend
async testWebdav({ homey, body }) {
return homey.app.testWebdav(body);
},
};