Skip to content

Commit 39dafbf

Browse files
authored
Move stories routes to under fullAcademy router (#2642)
1 parent 70d24af commit 39dafbf

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/routes/routerConfig.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,6 @@ const commonChildrenRoutes: RouteObject[] = [
9191
path: 'githubassessments/*',
9292
lazy: GitHubClassroom,
9393
loader: conditionalLoader(!Constants.enableGitHubAssessments, '/')
94-
},
95-
{
96-
path: 'stories/new',
97-
lazy: EditStory
98-
},
99-
{
100-
path: 'stories/view/:id',
101-
lazy: ViewStory
102-
},
103-
{
104-
path: 'stories/edit/:id',
105-
lazy: EditStory
106-
},
107-
{
108-
path: 'stories',
109-
lazy: Stories
11094
}
11195
];
11296

@@ -204,6 +188,22 @@ export const getFullAcademyRouterConfig = ({
204188
path: 'mission-control/:assessmentId?/:questionId?',
205189
lazy: MissionControl
206190
},
191+
{
192+
path: 'stories/new',
193+
lazy: EditStory
194+
},
195+
{
196+
path: 'stories/view/:id',
197+
lazy: ViewStory
198+
},
199+
{
200+
path: 'stories/edit/:id',
201+
lazy: EditStory
202+
},
203+
{
204+
path: 'stories',
205+
lazy: Stories
206+
},
207207
...commonChildrenRoutes,
208208
{
209209
path: '*',

0 commit comments

Comments
 (0)