providing statistic data in statistic component

This commit is contained in:
Marcel-Anker
2025-11-18 14:01:00 +01:00
parent bd56f3242e
commit bc274c0e0b
9 changed files with 212 additions and 159 deletions

View File

@@ -8,6 +8,7 @@ import { ScheduleComponent } from './schedule/schedule.component';
import { TheaterOverlayComponent} from './theater-overlay/theater-overlay.component';
import { MovieImporterComponent } from './movie-importer/movie-importer.component';
import { AuthGuard } from './auth.guard';
import {StatisticsComponent} from './statistics/statistics.component';
const routes: Routes = [
// Seiten ohne Layout
@@ -28,6 +29,12 @@ const routes: Routes = [
data: { roles: ['admin'] }, // Array von erlaubten Rollen. Derzeit gäbe es 'admin' und 'employee'
},
{ path: 'selection/performance/:id', component: TheaterOverlayComponent},
{
path: 'admin/statistics',
component: StatisticsComponent,
canActivate: [AuthGuard],
data: { roles: ['admin'] }, // Array von erlaubten Rollen. Derzeit gäbe es 'admin' und 'employee'
},
],
},