github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/adapters/node.js (about) 1 import Watchable from './watchable'; 2 3 export default Watchable.extend({ 4 findAllocations(node) { 5 const url = `${this.buildURL('node', node.get('id'), node, 'findRecord')}/allocations`; 6 return this.ajax(url, 'GET').then(allocs => { 7 return this.store.pushPayload('allocation', { 8 allocations: allocs, 9 }); 10 }); 11 }, 12 });