Created
June 24, 2021 11:37
-
-
Save fhsinchy/eb059c43cbec942ce3320f4ef0ca80f6 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
// src/router/index.js | |
import Vue from 'vue'; | |
import VueRouter from 'vue-router'; | |
import Home from '../views/Home.vue'; | |
Vue.use(VueRouter); | |
const routes = [ | |
{ | |
path: '/', | |
name: 'Home', | |
component: Home, | |
}, | |
{ | |
path: '/callback', | |
name: 'OAuthCallbackHandler', | |
component: () => import('../views/OAuthCallbackHandler.vue'), | |
}, | |
]; | |
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