import { Routes } from '@angular/router';
import { HomeComponent } from './pages/home/home.component';
import { AuthGuard } from './auth/auth.guard';
import { UserComponent } from './pages/user/user.component';
import { GroupComponent } from './pages/group/group.component';
import { ModuleComponent } from './pages/module/module.component';
import { UserAssignmentComponent } from './pages/user-assignment/user-assignment.component';
import { UserRepresentationComponent } from './pages/user-representation/user-representation.component';

export const routes: Routes = [
    { path: '', component: HomeComponent },
    { path: 'user-table', component: UserComponent, canActivate: [AuthGuard] },
    { path: 'group-table', component: GroupComponent, canActivate: [AuthGuard] },
    { path: 'module-table', component: ModuleComponent, canActivate: [AuthGuard] },
    { path: 'user-assignment', component: UserAssignmentComponent, canActivate: [AuthGuard] },
    { path: 'user-representation', component: UserRepresentationComponent, canActivate: [AuthGuard] }
];