aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-10 00:50:04 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-10 00:50:04 +0100
commitedb151a0e7de2c48de3ba38a0ddaff198936bd29 (patch)
tree9b483bd938038a40d33daf64ca184ba5d44d1cca /frontend/src/app/app-routing.module.ts
parent2e8e7bad8f7cf0c5c333ac4bf95381defbdf4ae0 (diff)
Dodao model i stranicu za dodavanje modela, potrebno je prosiriti formu i za ostala podesavanja.
Diffstat (limited to 'frontend/src/app/app-routing.module.ts')
-rw-r--r--frontend/src/app/app-routing.module.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index 1868e56c..8dc3c752 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -1,5 +1,6 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
+import { AddModelComponent } from './_pages/add-model/add-model.component';
import { LoginPageComponent } from './_pages/login-page/login-page.component';
import { OnlyAuthorizedComponent } from './_pages/only-authorized/only-authorized.component';
@@ -7,9 +8,11 @@ import { RegisterPageComponent } from './_pages/register-page/register-page.comp
import { AuthGuardService } from './_services/auth-guard.service';
const routes: Routes = [
+ { path: '', redirectTo: '/login', pathMatch: 'full' },
{ path: 'login', component: LoginPageComponent },
{ path: 'register', component: RegisterPageComponent },
- { path: 'only-authorized', component: OnlyAuthorizedComponent, canActivate: [AuthGuardService] }
+ { path: 'only-authorized', component: OnlyAuthorizedComponent, canActivate: [AuthGuardService] },
+ { path: 'add-model', component: AddModelComponent }
];
@NgModule({