Commit a43d1084 authored by Michael Lange's avatar Michael Lange
Browse files

Mock the eligibility endpoint in mirage

parent 3ed31eb9
Showing with 4 additions and 0 deletions
+4 -0
......@@ -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');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment