github.com/hernad/nomad@v1.6.112/ui/app/initializers/app-token.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  export function initialize() {
     7    const application = arguments[1] || arguments[0];
     8  
     9    // Provides the acl token service to all templates
    10    application.inject('controller', 'token', 'service:token');
    11    application.inject('component', 'token', 'service:token');
    12  }
    13  
    14  export default {
    15    name: 'app-token',
    16    initialize,
    17  };