added express endpoints, a settings service and a media info service

This commit is contained in:
2019-10-30 22:49:04 +01:00
parent e5dd8cb87a
commit d7dab07845
8 changed files with 127 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
const globalEvents = {
play: "play",
pause: "pause",
playPause: "playPause",
next: "next",
previous: "previous",
};
module.exports = globalEvents;

View File

@@ -0,0 +1,9 @@
const globalEvents = require("./globalEvents");
const mediaKeys = {
MediaPlayPause: globalEvents.playPause,
MediaNextTrack: globalEvents.next,
MediaPreviousTrack: globalEvents.previous,
};
module.exports = mediaKeys;