Created
August 9, 2020 10:01
-
-
Save Adarshreddyash/309bb43cad1fff6c4016ca6c39b73060 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 Signup from '../views/Signup.vue' | |
import Portfolio from '@/components/Portfolio'; | |
import Songs from '@/components/Songs' | |
Vue.use(VueRouter) | |
const routes = [ | |
{ | |
path: '/', | |
name: 'Home', | |
component: Portfolio | |
}, | |
{ | |
path: '/signup', | |
name: 'Signup', | |
component: Signup | |
}, | |
{ | |
path: '/songs', | |
name: 'Songs', | |
component: Songs | |
}, | |
/*{ | |
path: '', | |
name: '', | |
component: , | |
}*/ | |
] | |
const router = new VueRouter({ | |
mode: 'history', | |
base: process.env.BASE_URL, | |
routes | |
}) | |
export default router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment