Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
feat(front-end): restrict access to certificates, only clients can ac…
Browse files Browse the repository at this point in the history
…cess
  • Loading branch information
CarlosPavajeau committed Apr 17, 2021
1 parent 62f4464 commit 59f0c74
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardLayoutComponent } from '@app/shared/layouts/dashboard-layout/dashboard-layout.component';
import { ClientGuard } from '@core/guards/client.guard';
import { CertificateDetailComponent } from './components/certificate-detail/certificate-detail.component';
import { CertificatesComponent } from './components/certificates/certificates.component';

const routes: Routes = [
{
path: '',
component: DashboardLayoutComponent,
canActivate: [ ClientGuard ],
children: [
{
path: '',
Expand Down

0 comments on commit 59f0c74

Please sign in to comment.