Skip to content

Commit

Permalink
server: show played tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jan 12, 2021
1 parent 17667e9 commit 1bb5b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/index.ts
Expand Up @@ -29,6 +29,7 @@ router.get('/stats', ctx => {
key,
devices: [...connections[key].store.devices.values()].map(d => d.device.name),
user: connections[key].store.user?.username,
playedTracks: connections[key].store.mixstatus.trackHistory.map(h => h.track.title),
}));

ctx.body = `Client Info: ${JSON.stringify(data)}`;
Expand Down

1 comment on commit 1bb5b8d

@vercel
Copy link

@vercel vercel bot commented on 1bb5b8d Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.