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