mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
[web] Use named route for music albums
Switching to named routes in order to reduce future maintenance.
This commit is contained in:
@@ -49,7 +49,18 @@ export const router = createRouter({
|
||||
name: 'about',
|
||||
path: '/about'
|
||||
},
|
||||
|
||||
{
|
||||
component: PageAlbum,
|
||||
meta: { show_progress: true },
|
||||
name: 'music-album',
|
||||
path: '/music/albums/:id'
|
||||
},
|
||||
{
|
||||
component: PageAlbums,
|
||||
meta: { has_index: true, has_tabs: true, show_progress: true },
|
||||
name: 'music-albums',
|
||||
path: '/music/albums'
|
||||
},
|
||||
{
|
||||
component: PageArtist,
|
||||
meta: { show_progress: true, has_index: true },
|
||||
@@ -119,18 +130,6 @@ export const router = createRouter({
|
||||
component: PageBrowseRecentlyPlayed,
|
||||
meta: { show_progress: true, has_tabs: true }
|
||||
},
|
||||
{
|
||||
path: '/music/albums',
|
||||
name: 'Albums',
|
||||
component: PageAlbums,
|
||||
meta: { show_progress: true, has_tabs: true, has_index: true }
|
||||
},
|
||||
{
|
||||
path: '/music/albums/:album_id',
|
||||
name: 'Album',
|
||||
component: PageAlbum,
|
||||
meta: { show_progress: true }
|
||||
},
|
||||
{
|
||||
component: PageFiles,
|
||||
meta: { show_progress: true },
|
||||
|
||||
Reference in New Issue
Block a user