Created
November 15, 2019 15:05
-
-
Save jgilbertcastro/eea35969967b2e0c1e09ec3b4c98f96a 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
import Vue from "vue"; | |
import VueRouter from "vue-router"; | |
import Home from "../views/Home.vue"; | |
import AddPost from "../views/AddPost.vue"; | |
Vue.use(VueRouter); | |
const routes = [ | |
{ | |
path: "/", | |
name: "home", | |
component: Home | |
}, | |
{ | |
path: "/addpost", | |
name: "addpost", | |
component: AddPost | |
} | |
]; | |
const router = new VueRouter({ | |
routes | |
}); | |
export default router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment