github.com/emate/nomad@v0.8.2-wo-binpacking/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 });