im so tired rn
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s

This commit is contained in:
2026-03-08 00:51:14 -06:00
parent 31225b51b2
commit 242872cba0
11 changed files with 162 additions and 15 deletions

View File

@@ -1,13 +1,22 @@
// generated by vue
// the router creates front-end endpoints and serves pages to them
import { createRouter, createWebHistory } from "vue-router";
import UsersList from "../pages/UsersList.vue";
import UserForm from "../pages/UserForm.vue";
import index from "../pages/index.vue";
import { createRouter, createWebHistory } from 'vue-router'
// link path to the page component
const routes = [
{ path: "/", component: index },
{ path: "/users", component: UsersList },
{ path: "/user/new", component: UserForm },
{ path: "/user/:id", component: UserForm }
]; // I really like this
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [],
})
});
export default router
export default router;