provide current user context from entry point

This commit is contained in:
Mads Rasmussen
2023-11-09 22:02:55 +01:00
parent ad7c235a77
commit 03746a1858
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import { UmbCurrentUserContext } from './current-user/index.js';
import type { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api';
export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
new UmbCurrentUserContext(host);
};

View File

@@ -7,4 +7,10 @@ export const extensions = [
type: 'bundle',
loader: () => import('./manifests.js'),
},
{
name: 'User Management Entry Point',
alias: 'Umb.EntryPoint.UserManagement',
type: 'entryPoint',
loader: () => import('./entry-point.js'),
},
];