From 94955c8b0883893018900726baa22ae858cc7084 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Thu, 24 Oct 2019 17:52:21 -0700 Subject: [PATCH] Mock the eligibility endpoint in mirage --- ui/mirage/config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/mirage/config.js b/ui/mirage/config.js index a8ca27446..00dd3a3fd 100644 --- a/ui/mirage/config.js +++ b/ui/mirage/config.js @@ -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');