Files
nostrdvm/ui/noogle/src/router/index.js
Believethehype a093648347 optimizations
2024-03-06 14:12:36 +01:00

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;