@app.route('/data/user-groups.json')
def get_user_groups():
    return Response(json.dumps(site_data['user-groups'], cls=DateAwareEncoder), mimetype='application/json')
@app.route('/data/user-groups.json')
def get_user_groups():
    return Response(json.dumps(site_data['user-groups'], cls=DateAwareEncoder), mimetype='application/json')