mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-31 03:48:03 +01:00
Connect Athena to Spotify
This commit is contained in:
@@ -21,6 +21,17 @@ Route.group(() => {
|
||||
Route.post('/commands', 'StatsController.incrementCommandCount')
|
||||
Route.post('/builds', 'StatsController.incrementBuildCount')
|
||||
}).prefix('stats')
|
||||
|
||||
Route.group(() => {
|
||||
Route.get('/', 'SongsController.getCurrentSong')
|
||||
Route.get('/history', 'SongsController.getHistory')
|
||||
|
||||
Route.get('/top/track', 'SongsController.getTopTrack')
|
||||
Route.get('/top/artist', 'SongsController.getTopArtist')
|
||||
|
||||
Route.get('/authorize', 'SongsController.authorize')
|
||||
Route.get('/callback', 'SongsController.callback')
|
||||
}).prefix('spotify')
|
||||
}).middleware('auth:web,api')
|
||||
|
||||
Route.get('/files/:filename', async({ response, params }) => {
|
||||
|
||||
Reference in New Issue
Block a user