mirror of https://github.com/status-im/consul.git
10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
|
import Service, { inject as service } from '@ember/service';
|
||
|
import { get } from '@ember/object';
|
||
|
|
||
|
export default Service.extend({
|
||
|
store: service('store'),
|
||
|
findAllByDatacenter: function(dc) {
|
||
|
return get(this, 'store').query('coordinate', { dc: dc });
|
||
|
},
|
||
|
});
|