import {createRouter, createWebHistory} from "vue-router";
import WeatherCard from "@/components/WeatherCard.vue";
import RoomCard from "@/components/RoomCard.vue";
import HomeView from "@/components/HomeView.vue";
import DebugView from "@/components/DebugView.vue";
import APIView from "@/components/APIView.vue";
import SettingsView from "@/components/SettingsView.vue";


const routes = [
    {
        path: '/WeatherCard',
        name: 'WeatherCard',
        component: WeatherCard
    },
    {
        path: '/RoomCard',
        name: 'RoomCard',
        component: RoomCard
    },
    {
        path: '/DebugView',
        name: 'DebugView',
        component: DebugView
    },
    {
        path: '/HomeView',
        name: 'HomeView',
        component: HomeView
    },
    {
        path: '/',
        redirect: '/HomeView',
    },
    {
        path: '/APIView',
        name: 'APIView',
        component: APIView
    },
    {
        path: '/SettingsView',
        name: 'SettingsView',
        component: SettingsView
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router