Files
nomad/ui/app/initializers/app-token.js
2023-08-10 17:27:29 -05:00

18 lines
397 B
JavaScript

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