mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Mock the eligibility endpoint in mirage
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user