import {createMemoryHistory, createRouter} from 'vue-router';
import GeneralView from "@/views/GeneralView.vue";
import TextsView from "@/views/TextsView.vue";
import OrdersView from "@/views/OrdersView.vue";
import TelegramView from "@/views/TelegramView.vue";
import MetricsView from "@/views/MetricsView.vue";
import StoreView from "@/views/StoreView.vue";
import MainPageView from "@/views/MainPageView.vue";
import FormBuilderView from "@/views/FormBuilderView.vue";
import CustomersView from "@/views/CustomersView.vue";
import TeleCartPulseView from "@/views/TeleCartPulseView.vue";
import CronView from "@/views/CronView.vue";

const router = createRouter({
  history: createMemoryHistory(),
  routes: [
    {path: '/', name: 'general', component: GeneralView},
    {path: '/customers', name: 'customers', component: CustomersView},
    {path: '/formbuilder', name: 'formbuilder', component: FormBuilderView},
    {path: '/mainpage', name: 'mainpage', component: MainPageView},
    {path: '/metrics', name: 'metrics', component: MetricsView},
    {path: '/orders', name: 'orders', component: OrdersView},
    {path: '/pulse', name: 'pulse', component: TeleCartPulseView},
    {path: '/store', name: 'store', component: StoreView},
    {path: '/telegram', name: 'telegram', component: TelegramView},
    {path: '/texts', name: 'texts', component: TextsView},
    {path: '/cron', name: 'cron', component: CronView},
  ],
});

export default router;
