Skip to content
Snippets Groups Projects

Resolve "Add webhooks management view in the admin panel"

15 files
+ 546
6
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -2,8 +2,14 @@ import {Route} from "@angular/router";
@@ -2,8 +2,14 @@ import {Route} from "@angular/router";
import {AuthGuard} from "../../../auth/auth.guard";
import {AuthGuard} from "../../../auth/auth.guard";
import {RoleGuard} from "../../../auth/role.guard";
import {RoleGuard} from "../../../auth/role.guard";
import {ConfigurationDetailsComponent} from "./index";
import {ConfigurationDetailsComponent} from "./index";
 
import { WebhookListComponent } from "../webhook/webhook-list/webhook-list.component";
 
import { WebhookDetailsComponent } from "../webhook/webhook-details/webhook-details.component";
export const ConfigurationRoutes: Route[] = [
export const ConfigurationRoutes: Route[] = [
{path: 'configuration', component: ConfigurationDetailsComponent, canActivate: [AuthGuard, RoleGuard],
{path: 'configuration', component: ConfigurationDetailsComponent, canActivate: [AuthGuard, RoleGuard],
 
data:{roles: ['ROLE_SYSTEM_ADMIN']} },
 
{path: 'webhooks', component: WebhookListComponent, canActivate: [AuthGuard, RoleGuard],
 
data:{roles: ['ROLE_SYSTEM_ADMIN']} },
 
{path: 'webhooks/:id', component: WebhookDetailsComponent, canActivate: [AuthGuard, RoleGuard],
data:{roles: ['ROLE_SYSTEM_ADMIN']} }
data:{roles: ['ROLE_SYSTEM_ADMIN']} }
];
];
Loading