mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-20 06:32:18 +00:00
20 lines
541 B
JavaScript
20 lines
541 B
JavaScript
/**
|
|
* Load extensions from the API using ExtensionManager
|
|
* This must run before other initializers that depend on extensions
|
|
*/
|
|
export async function initialize(appInstance) {
|
|
const application = appInstance.application;
|
|
const extensionManager = appInstance.lookup('service:universe/extension-manager');
|
|
|
|
try {
|
|
await extensionManager.loadExtensions(application);
|
|
} catch (error) {
|
|
console.error('[load-extensions] Error:', error);
|
|
}
|
|
}
|
|
|
|
export default {
|
|
name: 'load-extensions',
|
|
initialize,
|
|
};
|