Refactor api.js: rename powerActionsRoute to resurrectorRoute for clarity in API endpoint usage

master^2
Tudor Stanciu 2024-11-16 02:12:47 +02:00
parent ad27fa477d
commit 174f383968
1 changed files with 5 additions and 5 deletions

View File

@ -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: {