import { createRouter, createWebHistory } from 'vue-router';
import Register from './views/Register.vue';
import Login from './views/Login.vue';
import Activate from './views/Activate.vue';
import Home from './views/Home.vue';
import CreateClub from './views/CreateClub.vue';
import ClubView from './views/ClubView.vue';
import MembersView from './views/MembersView.vue';
import DiaryView from './views/DiaryView.vue';

const routes = [
  { path: '/register', component: Register },
  { path: '/login', component: Login },
  { path: '/activate/:activationCode', component: Activate },
  { path: '/', component: Home },
  { path: '/createclub', component: CreateClub },
  { path: '/showclub/:1', component: ClubView },
  { path: '/members', component: MembersView },
  { path: '/diary', component: DiaryView },
];

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

export default router;
