mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Add genre list route and implementation
This commit is contained in:
parent
f6d74ce9c3
commit
5896d886d7
7 changed files with 126 additions and 35 deletions
|
|
@ -105,11 +105,21 @@ export const AppRouter = () => {
|
|||
errorElement={<RouteErrorBoundary />}
|
||||
path={AppRoute.NOW_PLAYING}
|
||||
/>
|
||||
<Route
|
||||
element={<GenreListRoute />}
|
||||
errorElement={<RouteErrorBoundary />}
|
||||
path={AppRoute.LIBRARY_GENRES}
|
||||
/>
|
||||
<Route path={AppRoute.LIBRARY_GENRES}>
|
||||
<Route
|
||||
index
|
||||
element={<GenreListRoute />}
|
||||
errorElement={<RouteErrorBoundary />}
|
||||
/>
|
||||
<Route
|
||||
element={<AlbumListRoute />}
|
||||
path={AppRoute.LIBRARY_GENRES_ALBUMS}
|
||||
/>
|
||||
<Route
|
||||
element={<SongListRoute />}
|
||||
path={AppRoute.LIBRARY_GENRES_SONGS}
|
||||
/>
|
||||
</Route>
|
||||
<Route
|
||||
element={<AlbumListRoute />}
|
||||
errorElement={<RouteErrorBoundary />}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ export enum AppRoute {
|
|||
LIBRARY_ARTISTS_DETAIL = '/library/artists/:artistId',
|
||||
LIBRARY_FOLDERS = '/library/folders',
|
||||
LIBRARY_GENRES = '/library/genres',
|
||||
LIBRARY_GENRES_ALBUMS = '/library/genres/:genreId/albums',
|
||||
LIBRARY_GENRES_SONGS = '/library/genres/:genreId/songs',
|
||||
LIBRARY_SONGS = '/library/songs',
|
||||
NOW_PLAYING = '/now-playing',
|
||||
PLAYING = '/playing',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue