client/src/router.js

81 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-02-08 12:37:55 +01:00
import { createWebHashHistory, createRouter } from "vue-router";
import LoginView from "./views/Login";
import AlbumsView from "./views/Albums";
import ArtistsView from "./views/Artists";
import RadiosView from "./views/Radios";
import BoxesView from "./views/Boxes";
import SearchView from "./views/Search";
import SetupView from "./views/Setup";
2023-02-16 11:34:27 +01:00
import ShareView from "./views/Share";
2023-02-08 12:37:55 +01:00
import HomeView from "./views/Home";
import UsersView from "./views/Users";
import FavouritesView from "./views/Favourites"
const routes = [
{
path: "/",
component: HomeView
},
{
path: "/login",
component: LoginView
},
{
path: "/albums",
component: AlbumsView
},
{
path: "/albums/:id",
component: AlbumsView
},
{
path: "/artists",
component: ArtistsView
},
{
path: "/artists/:id",
component: ArtistsView
},
{
path: "/radios",
component: RadiosView
},
{
path: "/boxes",
component: BoxesView
},
{
path: "/boxes/:id",
component: BoxesView
},
{
path: "/search",
component: SearchView
},
{
path: "/setup",
component: SetupView
},
2023-02-16 11:34:27 +01:00
{
path: "/share",
component: ShareView
},
2023-02-08 12:37:55 +01:00
{
path: "/me",
component: UsersView
},
{
path: "/favourites",
component: FavouritesView
}
]
const router = createRouter({
history: createWebHashHistory(),
routes
});
export default router;