mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
[web] Use named route for the "now playing" page
Switching to named routes in order to reduce future maintenance.
This commit is contained in:
@@ -55,11 +55,6 @@ export const router = createRouter({
|
||||
name: 'audiobook',
|
||||
path: '/audiobook/:id'
|
||||
},
|
||||
{
|
||||
path: '/now-playing',
|
||||
name: 'Now playing',
|
||||
component: PageNowPlaying
|
||||
},
|
||||
{
|
||||
path: '/music',
|
||||
redirect: '/music/browse'
|
||||
@@ -148,6 +143,11 @@ export const router = createRouter({
|
||||
component: PageComposerTracks,
|
||||
meta: { show_progress: true, has_index: true }
|
||||
},
|
||||
{
|
||||
component: PageNowPlaying,
|
||||
name: 'now-playing',
|
||||
path: '/now-playing',
|
||||
},
|
||||
{
|
||||
component: PagePodcast,
|
||||
meta: { show_progress: true },
|
||||
|
||||
Reference in New Issue
Block a user