From d3166e2838a96385aefbc9082fc012f1651bacbe Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 17 Jan 2022 17:01:44 +0100 Subject: [PATCH] Add all routes in home page --- start/routes/home.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/start/routes/home.ts b/start/routes/home.ts index c0591d5..486cb52 100644 --- a/start/routes/home.ts +++ b/start/routes/home.ts @@ -15,7 +15,12 @@ Route.get('/', async({ response }: HttpContextContract) => { profile: `${BASE_URL}/me`, stats: `${BASE_URL}/stats`, states: `${BASE_URL}/states`, - songs: `${BASE_URL}/spotify`, + songs: { + current_song: `${BASE_URL}/spotify`, + history: `${BASE_URL}/spotify/history`, + top_artists: `${BASE_URL}/spotify/top/artists`, + top_tracks: `${BASE_URL}/spotify/top/tracks`, + }, locations: `${BASE_URL}/locations`, }, })