mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2026-01-03 22:34:22 +01:00
21 lines
797 B
JavaScript
21 lines
797 B
JavaScript
import { createWebHistory, createRouter } from "vue-router";
|
|
|
|
|
|
|
|
const routes = [
|
|
{ path: "/", component: () => import("@/components/Home.vue") },
|
|
{ path: "/about", component: () => import("@/components/AboutPage.vue") },
|
|
{ path: "/donate", component: () => import("@/components/Donate.vue") },
|
|
{ path: "/nip89", component: () => import("@/components/Nip89view.vue") },
|
|
{ path: "/image", component: () => import("@/components/Image.vue") },
|
|
{ path: "/discover", component: () => import("@/components/Recommendation.vue") },
|
|
{ path: "/article/:id", component: () => import("@/components/Home.vue") },
|
|
{ path: '/:pathMatch(.*)*', component: () => import("@/components/Home.vue") },
|
|
];
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router; |