mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Update spotify connection
This commit is contained in:
@@ -6,6 +6,17 @@ Route.get('/stats', 'StatsController.index')
|
||||
Route.get('/states', 'StatesController.index')
|
||||
Route.resource('/locations', 'LocationsController').only(['index', 'store'])
|
||||
|
||||
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')
|
||||
|
||||
Route.group(() => {
|
||||
Route.resource('/users', 'UsersController').except(['edit', 'create'])
|
||||
|
||||
@@ -21,17 +32,6 @@ 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