Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
a43d1084
Commit
a43d1084
authored
5 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Mock the eligibility endpoint in mirage
parent
3ed31eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/mirage/config.js
+4
-0
ui/mirage/config.js
with
4 additions
and
0 deletions
+4
-0
ui/mirage/config.js
+
4
-
0
View file @
a43d1084
...
...
@@ -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
'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help