Skip to content

Instantly share code, notes, and snippets.

@Adarshreddyash
Created August 9, 2020 10:01
Show Gist options
  • Save Adarshreddyash/309bb43cad1fff6c4016ca6c39b73060 to your computer and use it in GitHub Desktop.
Save Adarshreddyash/309bb43cad1fff6c4016ca6c39b73060 to your computer and use it in GitHub Desktop.
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