mirror of https://github.com/ghostfolio/ghostfolio
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.
48 lines
1.6 KiB
48 lines
1.6 KiB
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { AdminJobsComponent } from '@ghostfolio/client/components/admin-jobs/admin-jobs.component';
|
|
import { AdminMarketDataComponent } from '@ghostfolio/client/components/admin-market-data/admin-market-data.component';
|
|
import { AdminOverviewComponent } from '@ghostfolio/client/components/admin-overview/admin-overview.component';
|
|
import { AdminPlatformComponent } from '@ghostfolio/client/components/admin-platform/platform.component';
|
|
import { AdminUsersComponent } from '@ghostfolio/client/components/admin-users/admin-users.component';
|
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard';
|
|
|
|
import { AdminPageComponent } from './admin-page.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
canActivate: [AuthGuard],
|
|
children: [
|
|
{ path: '', redirectTo: 'overview', pathMatch: 'full' },
|
|
{ path: 'jobs', component: AdminJobsComponent, title: $localize`Jobs` },
|
|
{
|
|
path: 'market-data',
|
|
component: AdminMarketDataComponent,
|
|
title: $localize`Market Data`
|
|
},
|
|
{
|
|
path: 'overview',
|
|
component: AdminOverviewComponent,
|
|
title: $localize`Admin Control`
|
|
},
|
|
{
|
|
path: 'users',
|
|
component: AdminUsersComponent,
|
|
title: $localize`Users`
|
|
},
|
|
{
|
|
path: 'platforms',
|
|
component: AdminPlatformComponent,
|
|
title: $localize`Platforms`
|
|
}
|
|
],
|
|
component: AdminPageComponent,
|
|
path: ''
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AdminPageRoutingModule {}
|
|
|