import { createRouter, createWebHistory } from 'vue-router'
import Ranking from '../components/Ranking.vue'
import Chat from '@/components/Chat2.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/admin',
      name: 'admin',
      component : Ranking
    },
    {
      path: '/',
      name: 'chat2',
      component: Chat,
    },
    {
      path: '/:chatId',
      name: 'chatWithId',
      component: Chat,
    }
  ],
})

export default router
