Update app.py
This commit is contained in:
parent
1d53168d4f
commit
75eddda10b
1 changed files with 9 additions and 5 deletions
14
app.py
14
app.py
|
|
@ -99,20 +99,24 @@ def stats_page():
|
||||||
|
|
||||||
@app.route("/stats/src-as")
|
@app.route("/stats/src-as")
|
||||||
def stats_srcas_json():
|
def stats_srcas_json():
|
||||||
return jsonify(get_widget_data("src-as"))
|
return jsonify(get_widget_data("top/src-as"))
|
||||||
|
|
||||||
@app.route("/stats/src-ports")
|
@app.route("/stats/src-ports")
|
||||||
def stats_srcport_json():
|
def stats_srcport_json():
|
||||||
return jsonify(get_widget_data("src-port"))
|
return jsonify(get_widget_data("top/src-port"))
|
||||||
|
|
||||||
@app.route("/stats/protocol")
|
@app.route("/stats/protocol")
|
||||||
def stats_protocol_json():
|
def stats_protocol_json():
|
||||||
return jsonify(get_widget_data("protocol"))
|
return jsonify(get_widget_data("top/protocol"))
|
||||||
|
|
||||||
@app.route("/stats/src-country")
|
@app.route("/stats/src-country")
|
||||||
def stats_srccountry_json():
|
def stats_srccountry_json():
|
||||||
return jsonify(get_widget_data("src-country"))
|
return jsonify(get_widget_data("top/src-country"))
|
||||||
|
|
||||||
@app.route("/stats/etype")
|
@app.route("/stats/etype")
|
||||||
def stats_etype_json():
|
def stats_etype_json():
|
||||||
return jsonify(get_widget_data("etype"))
|
return jsonify(get_widget_data("top/etype"))
|
||||||
|
|
||||||
|
@app.route("/stats/graph")
|
||||||
|
def stats_graph_json():
|
||||||
|
return jsonify(get_widget_data("graph"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue