-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathroutes.js
More file actions
32 lines (31 loc) · 1.49 KB
/
Copy pathroutes.js
File metadata and controls
32 lines (31 loc) · 1.49 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
module.exports = function(app) {
var apis = require('./controllers/roonAPI');
app.get('/roonAPI/getCore', apis.getCore);
app.get('/roonAPI/listZones', apis.listZones);
app.get('/roonAPI/listOutputs', apis.listOutputs);
app.get('/roonAPI/getZone', apis.getZone);
app.get('/roonAPI/play_pause', apis.play_pause);
app.get('/roonAPI/stop', apis.stop);
app.get('/roonAPI/previous', apis.previous);
app.get('/roonAPI/next', apis.next);
app.get('/roonAPI/change_volume', apis.change_volume);
app.get('/roonAPI/change_volume_relative', apis.change_volume_relative);
app.get('/roonAPI/getImage', apis.getImage);
app.get('/roonAPI/play', apis.play);
app.get('/roonAPI/pause', apis.pause);
app.get('/roonAPI/listByItemKey', apis.listByItemKey);
app.get('/roonAPI/listSearch', apis.listSearch);
app.get('/roonAPI/goUp', apis.goUp);
app.get('/roonAPI/goHome', apis.goHome);
app.get('/roonAPI/listGoPage', apis.listGoPage);
app.get('/roonAPI/listRefresh', apis.listRefresh);
app.get('/roonAPI/getMediumImage', apis.getMediumImage);
app.get('/roonAPI/getIcon', apis.getIcon);
app.get('/roonAPI/getOriginalImage', apis.getOriginalImage);
app.get('/roonAPI/getTimers', apis.getTimers);
app.get('/roonAPI/addTimer', apis.addTimer);
app.get('/roonAPI/removeTimer', apis.removeTimer);
app.post('/roonAPI/group', apis.group);
app.post('/roonAPI/ungroup', apis.ungroup);
app.get('/roonAPI/transferZone', apis.transferZone);
};