import Vue from 'vue';
import VueRouter from 'vue-router';
import BookMain from '../Components/BookMain'
import BookBase from "../Components/BookBase";
import FromAddress from "../Components/FromAddress";
import FromAirport from "../Components/FromAirport";
import PersonalInfo from '../Components/PersonalInfo';
import TotalBook from '../Components/TotalBook';
import BookToDb from '../Components/payment/BookToDb'
import PayByCard from '../Components/payment/PayByCard';
import PayByCash from '../Components/payment/PayByCash';
import YandexKassa from '../Components/payment/YandexKassa';
import FailPayment from '../Components/payment/FailPayment';
Vue.use(VueRouter);
const routes = [
{
path: '/',
redirect: {name: 'BookBase'},
name: 'bookMain',
component: BookMain
},
{
path: '/base',
name: 'BookBase',
components: {
default: BookBase
}
},
{
path: '/address',
name: 'FromAddress',
component: FromAddress,
},
{
path: '/airport',
name: 'FromAirport',
component: FromAirport,
},
{
path: '/personal',
name: 'PersonalInfo',
component: PersonalInfo
},
{
path: '/total',
name: 'TotalBook',
component: TotalBook
},
{
path: '/book-to-db',
name: 'BookToDb',
props: {redirectTo: true},
component: BookToDb
},
{
path: '/pay-by-card',
name: 'PayByCard',
component: PayByCard
},
{
path: '/pay-by-cash',
name: 'PayByCash',
component: PayByCash
},
{
path: '/yandex-kassa',
name: 'YandexKassa',
component: YandexKassa
},
{
path: '/fail-payment',
name: 'FailPayment',
component: FailPayment
},
];
const router = new VueRouter({ routes });
export default router;