mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-17 21:01:03 +02:00
20 lines
712 B
JavaScript
20 lines
712 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: "/article/:id", component: () => import("@/components/Home.vue") },
|
|
{ path: '/:pathMatch(.*)*', component: () => import("@/components/Home.vue") },
|
|
];
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router; |