Skip to content

Commit 6306685

Browse files
committed
add dashboard path pattern
1 parent 1032789 commit 6306685

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/packages/core/dashboard/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './dashboard.extension.js';
22
export * from './dashboard-element.interface.js';
3+
export * from './paths.js';

src/packages/core/dashboard/paths.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { UMB_SECTION_PATH_PATTERN } from '@umbraco-cms/backoffice/section';
2+
import { UmbPathPattern } from '@umbraco-cms/backoffice/router';
3+
4+
export const UMB_DASHBOARD_PATH_PATTERN = new UmbPathPattern<
5+
{ dashboardPathname: string },
6+
typeof UMB_SECTION_PATH_PATTERN.ABSOLUTE_PARAMS
7+
>('dashboard/:dashboardPathname', UMB_SECTION_PATH_PATTERN);

0 commit comments

Comments
 (0)