Files
binary/src/main.ts
Daniel Svitan 5cd6047f06 🐛 Fixes stupid 404
2024-03-04 22:02:15 +01:00

21 lines
502 B
TypeScript

import { createApp } from "vue";
import Home from "./pages/Home.vue";
import * as VueRouter from "vue-router";
import Playground from "./pages/Playground.vue";
import "./index.css";
const routes = [
{ path: "/", component: Home },
{ path: "/playground", component: Playground },
{ path: "/:pathMatch(.*)*", redirect: "/" },
];
const router = VueRouter.createRouter({
history: VueRouter.createWebHistory(),
routes: routes,
});
const app = createApp({});
app.use(router);
app.mount("#app");