adding a new api entry: stats

pull/130/head
Fafner [_KeyZee_] 2020-11-24 16:46:57 +01:00 committed by GitHub
parent bedbb8eb45
commit a172c1f58a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -674,3 +674,9 @@ def json_hostname_info():
to_query = request.get_json(force=True)
occurrences = lookyloo.get_hostname_occurrences(**to_query)
return jsonify(occurrences)
@app.route('/json/stats', methods=['GET'])
def json_stats():
to_return=lookyloo.get_stats()
return jsonify(to_return)