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 systemRoute = `${apiHost}/system`;
|
||||
const powerActionsRoute = `${apiHost}/resurrector`;
|
||||
const resurrectorRoute = `${apiHost}/resurrector`;
|
||||
const securityRoute = `${apiHost}/security`;
|
||||
|
||||
const endpoints = {
|
||||
network: {
|
||||
machines: `${networkRoute}/machines`,
|
||||
machine: {
|
||||
wake: `${powerActionsRoute}/wake`,
|
||||
ping: `${powerActionsRoute}/ping`,
|
||||
shutdown: `${powerActionsRoute}/shutdown`,
|
||||
restart: `${powerActionsRoute}/restart`
|
||||
wake: `${resurrectorRoute}/wake`,
|
||||
ping: `${resurrectorRoute}/ping`,
|
||||
shutdown: `${resurrectorRoute}/shutdown`,
|
||||
restart: `${resurrectorRoute}/restart`
|
||||
}
|
||||
},
|
||||
system: {
|
||||
|
|
Loading…
Reference in New Issue