aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-03-09 22:19:17 +0100
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-03-09 22:19:17 +0100
commitcbdc861b07e82502664f1c849f141a51104cd3d0 (patch)
tree9959995ea265df2d0be6ff307838a957b813f88e /frontend/src/app/app-routing.module.ts
parent8e7f2346cc4507b7e8056b57e01c0e85c11a4a2c (diff)
parenta95a921478435cc6400236d291281c3d0156a7e1 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into microservice
Diffstat (limited to 'frontend/src/app/app-routing.module.ts')
-rw-r--r--frontend/src/app/app-routing.module.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index 02972627..1868e56c 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -1,7 +1,16 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
-const routes: Routes = [];
+import { LoginPageComponent } from './_pages/login-page/login-page.component';
+import { OnlyAuthorizedComponent } from './_pages/only-authorized/only-authorized.component';
+import { RegisterPageComponent } from './_pages/register-page/register-page.component';
+import { AuthGuardService } from './_services/auth-guard.service';
+
+const routes: Routes = [
+ { path: 'login', component: LoginPageComponent },
+ { path: 'register', component: RegisterPageComponent },
+ { path: 'only-authorized', component: OnlyAuthorizedComponent, canActivate: [AuthGuardService] }
+];
@NgModule({
imports: [RouterModule.forRoot(routes)],