aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/system/system.routes.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-11 10:56:29 +0200
committerChocobozzz <me@florianbigard.com>2019-04-11 10:58:09 +0200
commit5d79474cc66383ecbfcef6366f63a34c3af21cbf (patch)
tree6b2cd85c25294ca04c94cbbcc90353d25e9cee06 /client/src/app/+admin/system/system.routes.ts
parent2b3f1919fda81c2781ceeb9071d426c184e1b21c (diff)
downloadPeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.tar.gz
PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.tar.zst
PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.zip
Add debug component to help admins to fix IP issues
Diffstat (limited to 'client/src/app/+admin/system/system.routes.ts')
-rw-r--r--client/src/app/+admin/system/system.routes.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts
index e6d45b760..2d851794d 100644
--- a/client/src/app/+admin/system/system.routes.ts
+++ b/client/src/app/+admin/system/system.routes.ts
@@ -4,6 +4,7 @@ import { UserRight } from '../../../../../shared'
4import { JobsComponent } from '@app/+admin/system/jobs/jobs.component' 4import { JobsComponent } from '@app/+admin/system/jobs/jobs.component'
5import { LogsComponent } from '@app/+admin/system/logs' 5import { LogsComponent } from '@app/+admin/system/logs'
6import { SystemComponent } from '@app/+admin/system/system.component' 6import { SystemComponent } from '@app/+admin/system/system.component'
7import { DebugComponent } from '@app/+admin/system/debug'
7 8
8export const SystemRoutes: Routes = [ 9export const SystemRoutes: Routes = [
9 { 10 {
@@ -38,6 +39,17 @@ export const SystemRoutes: Routes = [
38 title: 'Logs' 39 title: 'Logs'
39 } 40 }
40 } 41 }
42 },
43 {
44 path: 'debug',
45 canActivate: [ UserRightGuard ],
46 component: DebugComponent,
47 data: {
48 meta: {
49 userRight: UserRight.MANAGE_DEBUG,
50 title: 'Debug'
51 }
52 }
41 } 53 }
42 ] 54 ]
43 } 55 }