UNPKG

419 BJavaScriptView Raw
1import Vue from 'vue'
2import Router from 'vue-router'
3
4import ContactForm from '../components/ContactForm'
5import PatientForm from '../components/PatientForm'
6
7Vue.use(Router)
8
9export default new Router({
10 routes: [
11 { name: 'ContactForm', path: '/contact', component: ContactForm },
12 { name: 'PatientForm', path: '/patient', component: PatientForm },
13 { path: '*', redirect: { name: 'ContactForm' } }
14 ]
15})