You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/services/ui-config.js

15 lines
325 B

import Service, { inject as service } from '@ember/service';
import { get } from '@ember/object';
export default class UiConfigService extends Service {
@service('env') env;
async findByPath(path, configuration = {}) {
return get(this.get(), path);
}
get() {
return this.env.var('CONSUL_UI_CONFIG');
}
}