Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add user debug sidebar route #2806

Merged
merged 2 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading