yt-audio-player

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

router.ts (619B)


      1 import { createRouter, createWebHashHistory } from "vue-router";
      2 import About from "./components/About.vue";
      3 import AlbumList from "./components/AlbumList.vue";
      4 import ArtistsList from "./components/ArtistsList.vue";
      5 import SongList from "./components/SongList.vue";
      6 const routes = [
      7     { path: '/', name: "Home", component: ArtistsList },
      8     { path: '/about', name: "About", component: About },
      9     { path: '/artist/:artist_id', component: AlbumList},
     10     { path: '/artist/:artist_id/album/:album_id', component: SongList}
     11 ];
     12 
     13 export const router = createRouter({
     14     history: createWebHashHistory(),
     15     routes
     16 });