All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.modules.component.component.routes.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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