|
|
@ -12,21 +12,23 @@ router |
|
|
|
.get( |
|
|
|
.get( |
|
|
|
'/network-interface/:hostUUID?', |
|
|
|
'/network-interface/:hostUUID?', |
|
|
|
assertInit({ |
|
|
|
assertInit({ |
|
|
|
fail: ({ path }, response) => response.redirect(`/api${path}`), |
|
|
|
fail: ({ path }, response) => response.redirect(307, `/api${path}`), |
|
|
|
}), |
|
|
|
}), |
|
|
|
getNetworkInterface, |
|
|
|
getNetworkInterface, |
|
|
|
) |
|
|
|
) |
|
|
|
.post( |
|
|
|
.put( |
|
|
|
'/', |
|
|
|
'/', |
|
|
|
assertInit({ |
|
|
|
assertInit({ |
|
|
|
fail: (request, response) => response.redirect(`/api/host`), |
|
|
|
fail: (request, response) => |
|
|
|
|
|
|
|
response.redirect(307, `/api/host?handler=striker`), |
|
|
|
}), |
|
|
|
}), |
|
|
|
configStriker, |
|
|
|
configStriker, |
|
|
|
) |
|
|
|
) |
|
|
|
.put( |
|
|
|
.put( |
|
|
|
'/set-map-network', |
|
|
|
'/set-map-network', |
|
|
|
assertInit({ |
|
|
|
assertInit({ |
|
|
|
fail: ({ path }, response) => response.redirect(`/api/command${path}`), |
|
|
|
fail: ({ path }, response) => |
|
|
|
|
|
|
|
response.redirect(307, `/api/command${path}`), |
|
|
|
}), |
|
|
|
}), |
|
|
|
setMapNetwork, |
|
|
|
setMapNetwork, |
|
|
|
); |
|
|
|
); |
|
|
|