forked from st0g1e/roon-extension-http-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes.js
28 lines (27 loc) · 1.27 KB
/
routes.js
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
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/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);
};