refactor the "SEE ALL" button into a component

This commit is contained in:
geoffrey45
2023-01-02 15:29:40 +03:00
committed by Mungai Njoroge
parent 070dc92733
commit 688e7d8282
14 changed files with 84 additions and 101 deletions
+8
View File
@@ -142,6 +142,12 @@ const favoriteTracks = {
component: () => import("@/views/FavoriteTracks.vue"),
};
const favoriteArtists = {
path: "/favorites/artists",
name: "FavoriteArtists",
component: () => import("@/views/FavoriteArtists.vue"),
};
const notFound = {
name: "NotFound",
path: "/:pathMatch(.*)",
@@ -166,6 +172,7 @@ const routes = [
favorites,
favoriteAlbums,
favoriteTracks,
favoriteArtists,
];
const Routes = {
@@ -186,6 +193,7 @@ const Routes = {
favorites: favorites.name,
favoriteAlbums: favoriteAlbums.name,
favoriteTracks: favoriteTracks.name,
favoriteArtists: favoriteArtists.name,
};
export { routes, Routes };