forked from p15670423/monkey
Island: Rename netmap/nodeStates to netmap/node-states
This commit is contained in:
parent
1535832279
commit
09c944d52b
|
@ -137,7 +137,7 @@ def init_api_resources(api):
|
||||||
api.add_resource(NetMap, "/api/netmap")
|
api.add_resource(NetMap, "/api/netmap")
|
||||||
api.add_resource(Edge, "/api/netmap/edge")
|
api.add_resource(Edge, "/api/netmap/edge")
|
||||||
api.add_resource(Node, "/api/netmap/node")
|
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(SecurityReport, "/api/report/security")
|
||||||
api.add_resource(ZeroTrustReport, "/api/report/zero-trust/<string:report_data>")
|
api.add_resource(ZeroTrustReport, "/api/report/zero-trust/<string:report_data>")
|
||||||
|
|
|
@ -40,7 +40,7 @@ class MapPageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
getNodeStateListFromServer = () => {
|
getNodeStateListFromServer = () => {
|
||||||
this.authFetch('/api/netmap/nodeStates')
|
this.authFetch('/api/netmap/node-states')
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.setState({nodeStateList: res.node_states});
|
this.setState({nodeStateList: res.node_states});
|
||||||
|
|
|
@ -171,7 +171,7 @@ class ReportPageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
getNodeStateListFromServer = () => {
|
getNodeStateListFromServer = () => {
|
||||||
this.authFetch('/api/netmap/nodeStates')
|
this.authFetch('/api/netmap/node-states')
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.setState({nodeStateList: res.node_states});
|
this.setState({nodeStateList: res.node_states});
|
||||||
|
|
Loading…
Reference in New Issue