diff --git a/FencerJudgeFront/src/app/app-routing.module.ts b/FencerJudgeFront/src/app/app-routing.module.ts
index b958478..0440f68 100644
--- a/FencerJudgeFront/src/app/app-routing.module.ts
+++ b/FencerJudgeFront/src/app/app-routing.module.ts
@@ -10,6 +10,8 @@ import { HomeComponent } from './components/home/home.component';
import { MatchesComponent } from './components/match/matches/matches.component';
import { MatchesIdComponent } from './components/match/matches-id/matches-id.component';
+import { MatchesAddComponent } from './components/match/matches-add/matches-add.component';
+import { MatchesDelComponent } from './components/match/matches-del/matches-del.component';
const routes: Routes = [
{ path: 'login', component: LoginComponent },
@@ -19,6 +21,16 @@ const routes: Routes = [
{ path: 'home', component: HomeComponent },
{ path: 'matches', component: MatchesComponent },
+ {
+ path: 'matches/add',
+ component: MatchesAddComponent,
+ canActivate: [authGuard],
+ },
+ {
+ path: 'matches/del/:id',
+ component: MatchesDelComponent,
+ canActivate: [authGuard],
+ },
{ path: 'matches/:id', component: MatchesIdComponent },
];
diff --git a/FencerJudgeFront/src/app/app.component.html b/FencerJudgeFront/src/app/app.component.html
index a37d5f5..eaf43d3 100644
--- a/FencerJudgeFront/src/app/app.component.html
+++ b/FencerJudgeFront/src/app/app.component.html
@@ -1,5 +1,3 @@
HELLO !
+
+
+ matches-del works!
diff --git a/FencerJudgeFront/src/app/components/match/matches-del/matches-del.component.spec.ts b/FencerJudgeFront/src/app/components/match/matches-del/matches-del.component.spec.ts new file mode 100644 index 0000000..29459b8 --- /dev/null +++ b/FencerJudgeFront/src/app/components/match/matches-del/matches-del.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { MatchesDelComponent } from './matches-del.component'; + +describe('MatchesDelComponent', () => { + let component: MatchesDelComponent; + let fixture: ComponentFixtureMatch non trouvé.
+
+
+
+
+