Mock the eligibility endpoint in mirage

This commit is contained in:
Michael Lange
2019-10-24 17:52:21 -07:00
parent 3ed31eb949
commit a43d1084b1

View File

@@ -207,6 +207,10 @@ export default function() {
return this.serialize(allocations.where({ nodeId: params.id }));
});
this.post('/node/:id/eligibility', function({ nodes }, { params }) {
return this.serialize(nodes.find({ id: params.id }));
});
this.get('/allocations');
this.get('/allocation/:id');