From 831042521a4ad905586dcdc3b933d01ce09f69c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Mon, 10 Dec 2018 14:36:39 +0100
Subject: [PATCH] Add new route for content-statistic

---
 src/app/components/creator/creator-routing.module.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/app/components/creator/creator-routing.module.ts b/src/app/components/creator/creator-routing.module.ts
index 81b92a64e..637965043 100644
--- a/src/app/components/creator/creator-routing.module.ts
+++ b/src/app/components/creator/creator-routing.module.ts
@@ -9,6 +9,7 @@ import { StatisticsPageComponent } from '../shared/statistics-page/statistics-pa
 import { CommentListComponent } from '../shared/comment-list/comment-list.component';
 import { FeedbackBarometerPageComponent } from '../shared/feedback-barometer-page/feedback-barometer-page.component';
 import { ContentListComponent } from './content-list/content-list.component';
+import { StatisticComponent } from '../shared/statistic/statistic.component';
 
 const routes: Routes = [
   {
@@ -35,6 +36,12 @@ const routes: Routes = [
     canActivate: [AuthenticationGuard],
     data: { roles: [UserRole.CREATOR] }
   },
+  {
+    path: 'room/:roomId/statistics/:contentId',
+    component: StatisticComponent,
+    canActivate: [AuthenticationGuard],
+    data: { roles: [UserRole.CREATOR] }
+  },
   {
     path: 'room/:roomId/comments',
     component: CommentListComponent,
-- 
GitLab