Since it returns only one song it's obvious to return just that song's attributes.
This commit is contained in:
parent
645e94a5d8
commit
d3fb86dbdb
@ -70,7 +70,7 @@ function setRoutes() {
|
||||
ctx.body = await getRadioStatus();
|
||||
})
|
||||
.get('/lastsong', async ctx => {
|
||||
ctx.body = await getLastPlayedSongs(2);
|
||||
ctx.body = await getLastPlayedSongs(2)[0];
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user