From 09c944d52b58b0ea27acffb47d04115d0e428568 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 15 Apr 2022 12:45:47 +0200 Subject: [PATCH] Island: Rename netmap/nodeStates to netmap/node-states --- monkey/monkey_island/cc/app.py | 2 +- monkey/monkey_island/cc/ui/src/components/pages/MapPage.js | 2 +- .../cc/ui/src/components/report-components/SecurityReport.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/app.py b/monkey/monkey_island/cc/app.py index 045d787b1..cd3538cce 100644 --- a/monkey/monkey_island/cc/app.py +++ b/monkey/monkey_island/cc/app.py @@ -137,7 +137,7 @@ def init_api_resources(api): api.add_resource(NetMap, "/api/netmap") api.add_resource(Edge, "/api/netmap/edge") api.add_resource(Node, "/api/netmap/node") - api.add_resource(NodeStates, "/api/netmap/nodeStates") + api.add_resource(NodeStates, "/api/netmap/node-states") api.add_resource(SecurityReport, "/api/report/security") api.add_resource(ZeroTrustReport, "/api/report/zero-trust/") diff --git a/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js b/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js index 2686cdc19..4d1899360 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js @@ -40,7 +40,7 @@ class MapPageComponent extends AuthComponent { } getNodeStateListFromServer = () => { - this.authFetch('/api/netmap/nodeStates') + this.authFetch('/api/netmap/node-states') .then(res => res.json()) .then(res => { this.setState({nodeStateList: res.node_states}); diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js b/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js index a23cd6eb8..a57064f2f 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js @@ -171,7 +171,7 @@ class ReportPageComponent extends AuthComponent { } getNodeStateListFromServer = () => { - this.authFetch('/api/netmap/nodeStates') + this.authFetch('/api/netmap/node-states') .then(res => res.json()) .then(res => { this.setState({nodeStateList: res.node_states});