@@ -0,0 +1,788 @@
+# Source Server Stats%0A# File: sourcestats/views/api/history.py%0A# Desc: global history views%0A%0Afrom flask import jsonify%0A%0Afrom ...app import app%0Afrom ...util.elastic import get_es_history, get_request_filters%0A%0A%0A@app.route('/api/v1/history/servers')%0Adef get_server_history():%0A    '''Returns a date histogram of server count across everything.'''%0A    date_histogram = get_es_history(%0A        filters=get_request_filters(),%0A        include_servers=True%0A    )%0A%0A    return jsonify(servers=date_histogram)%0A%0A%0A@app.route('/api/v1/history/players')%0Adef get_player_history():%0A    '''Returns a date histogram of player count across everything.'''%0A    date_histogram = get_es_history(%0A        filters=get_request_filters(),%0A        include_players=True%0A    )%0A    return jsonify(players=date_histogram)%0A

Add global history endpoints.