Created
March 30, 2020 21:35
-
-
Save Serhansolo/05437bfff190d81e4e4ad7b395890498 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 Login from "@/components/Login"; | |
import Register from "@/components/Register"; | |
Vue.use(VueRouter); | |
const routes = [ | |
{ | |
path: "/login", | |
name: "Login", | |
component: Login, | |
alias: "/" | |
}, | |
{ | |
path: "/register", | |
name: "Register", | |
component: Register | |
} | |
]; | |
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