Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// src/router/index.js
import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue';
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,
export default router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment