Created
August 31, 2019 03:55
-
-
Save jsdecena/daec31da26e44d5d0dd0d4f8275e52df 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' | |
| Vue.use(Router) | |
| export default new Router({ | |
| routes: [ | |
| { | |
| path: '/', | |
| name: 'landing-page', | |
| component: require('@/components/LandingPage').default | |
| }, | |
| { | |
| path: '/post', | |
| name: 'post-create', // Create this!! | |
| component: require('@/components/PostCreate').default | |
| } | |
| { | |
| path: '*', | |
| redirect: '/' | |
| } | |
| ] | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment