ltx/lifetracker-vue/src/router/index.ts
Ryan Pandya 2eea51828a
Some checks failed
continuous-integration/drone/push Build is failing
Bunch of little changes.
2023-05-15 17:53:56 -04:00

26 lines
527 B
TypeScript

import { createRouter, createWebHistory } from "vue-router";
import TableView from "../views/TableView.vue";
import DatabaseView from "../views/DatabaseView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/",
redirect: "/table",
},
{
path: "/table",
name: "table",
component: TableView,
},
{
path: "/database",
name: "database",
component: DatabaseView,
},
],
});
export default router;