aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/app-routing.module.ts
diff options
context:
space:
mode:
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({