Refactor api.js: rename powerActionsRoute to resurrectorRoute for clarity in API endpoint usage
parent
ad27fa477d
commit
174f383968
|
@ -4,17 +4,17 @@ const apiHost = env.REACT_APP_NETWORK_RESURRECTOR_API_URL;
|
||||||
|
|
||||||
const networkRoute = `${apiHost}/network`;
|
const networkRoute = `${apiHost}/network`;
|
||||||
const systemRoute = `${apiHost}/system`;
|
const systemRoute = `${apiHost}/system`;
|
||||||
const powerActionsRoute = `${apiHost}/resurrector`;
|
const resurrectorRoute = `${apiHost}/resurrector`;
|
||||||
const securityRoute = `${apiHost}/security`;
|
const securityRoute = `${apiHost}/security`;
|
||||||
|
|
||||||
const endpoints = {
|
const endpoints = {
|
||||||
network: {
|
network: {
|
||||||
machines: `${networkRoute}/machines`,
|
machines: `${networkRoute}/machines`,
|
||||||
machine: {
|
machine: {
|
||||||
wake: `${powerActionsRoute}/wake`,
|
wake: `${resurrectorRoute}/wake`,
|
||||||
ping: `${powerActionsRoute}/ping`,
|
ping: `${resurrectorRoute}/ping`,
|
||||||
shutdown: `${powerActionsRoute}/shutdown`,
|
shutdown: `${resurrectorRoute}/shutdown`,
|
||||||
restart: `${powerActionsRoute}/restart`
|
restart: `${resurrectorRoute}/restart`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
system: {
|
system: {
|
||||||
|
|
Loading…
Reference in New Issue