Mock the eligibility endpoint in mirage

This commit is contained in:
Michael Lange 2019-10-24 17:52:21 -07:00
parent 17d402b680
commit 94955c8b08
1 changed files with 4 additions and 0 deletions

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');