import { createRouter, createWebHashHistory } from 'vue-router'
import Dashboard from '../views/Dashboard.vue'
import ProjectCreate from '../views/ProjectCreate.vue'
import ProjectDetail from '../views/ProjectDetail.vue'

const routes = [
  { path: '/', name: 'Dashboard', component: Dashboard },
  { path: '/projects/new', name: 'ProjectCreate', component: ProjectCreate },
  { path: '/projects/:id', name: 'ProjectDetail', component: ProjectDetail, props: true },
]

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

export default router
