Fixed routing

This commit is contained in:
Johnny Silverhand 2021-01-31 11:45:06 -05:00
parent f29fa0ebd9
commit d3049e2570

View file

@ -28,12 +28,12 @@ const routes = [
} }
}, },
{ {
path: 'tracklist/:type/:id', path: '/tracklist/:type/:id',
name: 'Tracklist', name: 'Tracklist',
component: Tracklist component: Tracklist
}, },
{ {
path: 'artist/:id', path: '/artist/:id',
name: 'Artist', name: 'Artist',
component: Artist, component: Artist,
meta: { meta: {
@ -41,22 +41,22 @@ const routes = [
} }
}, },
{ {
path: 'album/:id', path: '/album/:id',
name: 'Album', name: 'Album',
component: Tracklist component: Tracklist
}, },
{ {
path: 'playlist/:id', path: '/playlist/:id',
name: 'Playlist', name: 'Playlist',
component: Tracklist component: Tracklist
}, },
{ {
path: 'spotify-playlist/:id', path: '/spotify-playlist/:id',
name: 'Spotify Playlist', name: 'Spotify Playlist',
component: Tracklist component: Tracklist
}, },
{ {
path: 'charts', path: '/charts',
name: 'Charts', name: 'Charts',
component: Charts, component: Charts,
meta: { meta: {
@ -64,7 +64,7 @@ const routes = [
} }
}, },
{ {
path: 'favorites', path: '/favorites',
name: 'Favorites', name: 'Favorites',
component: Favorites, component: Favorites,
meta: { meta: {
@ -72,37 +72,37 @@ const routes = [
} }
}, },
{ {
path: 'errors', path: '/errors',
name: 'Errors', name: 'Errors',
component: Errors component: Errors
}, },
{ {
path: 'link-analyzer', path: '/link-analyzer',
name: 'Link Analyzer', name: 'Link Analyzer',
component: LinkAnalyzer component: LinkAnalyzer
}, },
{ {
path: 'about', path: '/about',
name: 'About', name: 'About',
component: About component: About
}, },
{ {
path: 'info-arl', path: '/info-arl',
name: 'ARL', name: 'ARL',
component: InfoArl component: InfoArl
}, },
{ {
path: 'info-spotify', path: '/info-spotify',
name: 'Spotify Features', name: 'Spotify Features',
component: InfoSpotifyFeatures component: InfoSpotifyFeatures
}, },
{ {
path: 'settings', path: '/settings',
name: 'Settings', name: 'Settings',
component: Settings component: Settings
}, },
{ {
path: 'search', path: '/search',
name: 'Search', name: 'Search',
component: Search, component: Search,
meta: { meta: {
@ -165,3 +165,4 @@ router.beforeEach((to, from, next) => {
}) })
export default router export default router