Skip to content

Commit

Permalink
Merge pull request #164 from Ragzouken/playing
Browse files Browse the repository at this point in the history
endpoint for current playing
  • Loading branch information
Ragzouken authored Nov 17, 2023
2 parents 976c6bc + 35cf67a commit 97f1e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export function host(
res.json(names);
});

xws.app.get('/playing', (request, response) => response.json({ item: playback.currentItem, time: playback.currentTime }));
xws.app.get('/queue', (request, response) => response.json(playback.queue));
xws.app.post('/queue', requireUserToken, async (request, response) => {
try {
Expand Down

0 comments on commit 97f1e0f

Please sign in to comment.