mirror of https://github.com/status-im/consul.git
15 lines
325 B
JavaScript
15 lines
325 B
JavaScript
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');
|
|
}
|
|
}
|