Skip to content

Commit

Permalink
Merge pull request #2806 from IDEMSInternational/feat/user-debug-sidebar
Browse files Browse the repository at this point in the history
feat: add user debug sidebar route
  • Loading branch information
esmeetewinkel authored Feb 27, 2025
2 parents 80fbf87 + c0cc618 commit 4d6eb54
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ import { TourComponent } from "./feature/tour/tour.component";
* Additional home template redirects and fallback routes will be specified
* from deployment config via the AppConfigService
**/
export const APP_FEATURE_ROUTES: Routes = [
const featureRoutes: Routes = [
{
path: "campaigns",
loadChildren: () => import("./feature/campaign/campaign.module").then((m) => m.CampaignModule),
},
{
path: "component",
loadChildren: () =>
import("./feature/template/pages/component/component.module").then(
(m) => m.TemplateComponentModule
),
},
{
path: "notifications",
loadChildren: () =>
Expand All @@ -38,7 +45,9 @@ export const APP_FEATURE_ROUTES: Routes = [
path: "user",
loadChildren: () => import("./feature/user/user.module").then((m) => m.UserModule),
},
// Routes to show in sidebar routing
];
// Routes available for display in sidebar routing
const sidebarRoutes: Routes = [
{
path: "feedback",
loadChildren: () => import("./feature/feedback/feedback.module").then((m) => m.FeedbackModule),
Expand All @@ -51,14 +60,14 @@ export const APP_FEATURE_ROUTES: Routes = [
outlet: "sidebar",
},
{
path: "component",
loadChildren: () =>
import("./feature/template/pages/component/component.module").then(
(m) => m.TemplateComponentModule
),
path: "user",
loadChildren: () => import("./feature/user/user.module").then((m) => m.UserModule),
outlet: "sidebar",
},
];

export const APP_FEATURE_ROUTES = [...featureRoutes, ...sidebarRoutes];

@NgModule({
imports: [
RouterModule.forRoot(APP_FEATURE_ROUTES, {
Expand Down

0 comments on commit 4d6eb54

Please sign in to comment.