Island: Rename netmap/nodeStates to netmap/node-states

This commit is contained in:
Ilija Lazoroski 2022-04-15 12:45:47 +02:00
parent 1535832279
commit 09c944d52b
3 changed files with 3 additions and 3 deletions

View File

@ -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/<string:report_data>")

View File

@ -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});

View File

@ -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});