mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-27 01:50:26 +01:00
Add range in response
This commit is contained in:
@@ -18,6 +18,7 @@ export default class SongsController {
|
|||||||
const { range } = await request.validate(SongHistoryValidator)
|
const { range } = await request.validate(SongHistoryValidator)
|
||||||
const history = await getHistory(range || 'day')
|
const history = await getHistory(range || 'day')
|
||||||
return response.status(200).send({
|
return response.status(200).send({
|
||||||
|
range,
|
||||||
history,
|
history,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user