mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.4 KiB
78 lines
2.4 KiB
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { SqxFrameworkModule, SqxSharedModule } from '@app/shared';
|
|
import { AdministrationAreaComponent, ClusterPageComponent, EventConsumerComponent, EventConsumersPageComponent, EventConsumersService, EventConsumersState, RestorePageComponent, UserComponent, UserMustExistGuard, UserPageComponent, UsersPageComponent, UsersService, UsersState } from './declarations';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: AdministrationAreaComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
children: [
|
|
{
|
|
path: 'event-consumers',
|
|
component: EventConsumersPageComponent,
|
|
},
|
|
{
|
|
path: 'cluster',
|
|
component: ClusterPageComponent,
|
|
},
|
|
{
|
|
path: 'restore',
|
|
component: RestorePageComponent,
|
|
},
|
|
{
|
|
path: 'users',
|
|
component: UsersPageComponent,
|
|
children: [
|
|
{
|
|
path: ':userId',
|
|
component: UserPageComponent,
|
|
canActivate: [UserMustExistGuard],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '',
|
|
redirectTo: 'users',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild(routes),
|
|
SqxFrameworkModule,
|
|
SqxSharedModule,
|
|
],
|
|
declarations: [
|
|
AdministrationAreaComponent,
|
|
ClusterPageComponent,
|
|
EventConsumerComponent,
|
|
EventConsumersPageComponent,
|
|
RestorePageComponent,
|
|
UserComponent,
|
|
UserPageComponent,
|
|
UsersPageComponent,
|
|
],
|
|
providers: [
|
|
EventConsumersService,
|
|
EventConsumersState,
|
|
UserMustExistGuard,
|
|
UsersService,
|
|
UsersState,
|
|
],
|
|
})
|
|
export class SqxFeatureAdministrationModule {}
|
|
|