feat: vue router and quality of life icons
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import HomeView from "@/views/HomeView.vue";
|
||||
import ListView from "@/views/ListView.vue";
|
||||
import NotFoundView from "@/views/NotFoundView.vue";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: "/", component: HomeView },
|
||||
{ path: "/:pathMatch([\\w-]+)", component: ListView },
|
||||
{ path: "/:pathMatch(.*)", component: NotFoundView },
|
||||
],
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user