Add range in response

This commit is contained in:
2022-01-17 17:01:28 +01:00
parent af4146024e
commit 0a6fa3eda7

View File

@@ -18,6 +18,7 @@ export default class SongsController {
const { range } = await request.validate(SongHistoryValidator)
const history = await getHistory(range || 'day')
return response.status(200).send({
range,
history,
})
}