aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-07 19:15:03 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-07 19:15:03 +0100
commit9eb7f0dd8c22782fed9ccf96fbfec3cedff2b892 (patch)
tree410d87cfa28f1497819fe99b2f54180d364d6857 /frontend/src/app/app-routing.module.ts
parent5fdb50247c66811964fb20801f0abc2a7c585303 (diff)
parentc59ff03b96d7b638623c254dfe8477055aeb2a35 (diff)
Merge branch 'frontend' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
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)],