Last active
October 29, 2021 18:11
-
-
Save SidneyAllen/5f1b92301d755ba1df30791d1e49add9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/router/index.js | |
import { createWebHistory, createRouter } from "vue-router"; | |
import ListTemplates from "../components/ListTemplates.vue"; | |
import Front from "../components/Front.vue"; | |
const routes = [ | |
{ path: "/", component: Front, name: "Home" }, | |
{ path: "/list", component: ListTemplates, name: "ListTemplates" }, | |
]; | |
const router = createRouter({ | |
history: createWebHistory(), | |
routes, | |
}); | |
export default router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment