| 12345678910111213141516171819202122232425262728293031323334353637 |
- import { createRouter, createWebHistory } from 'vue-router';
- import HomeView from '@/views/home.vue';
- import GamesView from '@/views/games.vue';
- import LeaguesView from '@/views/leagues.vue';
- import LocalesView from '@/views/locales.vue';
- const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
- routes: [
- {
- path: '/',
- redirect: '/home'
- },
- {
- path: '/home',
- name: 'home',
- component: HomeView
- },
- {
- path: '/games',
- name: 'games',
- component: GamesView
- },
- {
- path: '/leagues',
- name: 'leagues',
- component: LeaguesView
- },
- {
- path: '/locales',
- name: 'locales',
- component: LocalesView
- },
- ],
- });
- export default router;
|