Created
January 26, 2018 10:27
-
-
Save lmiller1990/e71e402d44b2071189da7df205fabd2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Router from 'vue-router' | |
import HelloWorld from '@/components/HelloWorld' | |
import ProfileView from '@/views/profile/Index' | |
import CreatePost from '@/views/posts/Create' | |
Vue.use(Router) | |
export default new Router({ | |
routes: [ | |
{ | |
path: '/', | |
name: 'HelloWorld', | |
component: HelloWorld | |
}, | |
{ | |
path: '/profile', | |
name: 'Profile', | |
component: ProfileView | |
}, | |
{ | |
path: '/posts/create', | |
name: 'CreatePost', | |
component: CreatePost | |
} | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment