src.app.modules.component.component.routes.ts Maven / Gradle / Ivy
import { Routes } from '@angular/router';
import { CreateComponent } from './components/create-component/create-component.component';
import { AuthGuard } from '@core/guards';
import { Authorization } from '@model';
export const componentRoute: Routes = [
{
path: '',
pathMatch: 'full',
redirectTo: 'list',
canActivate: [AuthGuard],
data: { 'authorizations': [ Authorization.COMPONENT_READ,Authorization.COMPONENT_WRITE ] }
},
{
path: ':id',
component: CreateComponent,
canActivate: [AuthGuard],
data: { 'authorizations': [ Authorization.COMPONENT_READ,Authorization.COMPONENT_WRITE ] }
}
];
© 2015 - 2025 Weber Informatics LLC | Privacy Policy