Mock the eligibility endpoint in mirage
This commit is contained in:
parent
17d402b680
commit
94955c8b08
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue