diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-03-09 22:19:17 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-03-09 22:19:17 +0100 |
commit | cbdc861b07e82502664f1c849f141a51104cd3d0 (patch) | |
tree | 9959995ea265df2d0be6ff307838a957b813f88e /frontend/src/app/app-routing.module.ts | |
parent | 8e7f2346cc4507b7e8056b57e01c0e85c11a4a2c (diff) | |
parent | a95a921478435cc6400236d291281c3d0156a7e1 (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.ts | 11 |
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)], |