import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../pages/Home.vue'
import ContentPage from '../pages/Home.vue'
import CharacterPage from '../pages/Character.vue'
import RegistePage from '../pages/Register.vue'
import loginPage from '../pages/Login.vue'

const routes = [
  { path: '/', name: 'home', component: HomePage },
  { path: '/content', name: 'content', component: ContentPage },
  { path: '/character', name: 'character', component: CharacterPage },
  {path: '/register', name: 'register', component: RegistePage},
  {path: '/login', name:'login', component:loginPage}
]

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

export default router
