Created
November 19, 2021 04:12
-
-
Save ShariqT/72f6b3150141e2edb9944c6a8437a554 to your computer and use it in GitHub Desktop.
Router
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
import { createWebHistory, createRouter } from "vue-router"; | |
import ListTemplates from "../components/ListTemplates.vue"; | |
import Front from "../components/Front.vue"; | |
import CreatePostcard from "../components/CreatePostcard.vue" | |
const routes = [ | |
{ path: "/", component: Front, name: "Home" }, | |
{ path: "/list", component: ListTemplates, name: "ListTemplates" }, | |
{ path: "/create", component: CreatePostcard, name: "CreatePostcard"} | |
]; | |
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