import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ShareView from '../views/ShareView.vue'
import LeaderboardView from '../views/LeaderboardView.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/share',
      name: 'share',
      component: ShareView
    },
    {
      path: '/rank',
      name: 'rank',
      component: LeaderboardView
    }
  ]
})

export default router
