open-nomad/ui/app/initializers/app-env.js
2023-04-10 15:36:59 +00:00

18 lines
394 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export function initialize() {
const application = arguments[1] || arguments[0];
// Provides the app config to all templates
application.inject('controller', 'config', 'service:config');
application.inject('component', 'config', 'service:config');
}
export default {
name: 'app-config',
initialize,
};