Add domain refresh endpoint

This commit is contained in:
Jeroen Boonstra 2018-06-08 13:21:17 +02:00
parent 734a6d5b32
commit 8b2083be77

View File

@ -547,6 +547,17 @@ def dashboard_domains():
} }
return jsonify(response_data) return jsonify(response_data)
@app.route('/dashboard-domains-updater', methods=['GET', 'POST'])
@login_required
def dashboard_domains_updater():
logging.debug('Update domains in background')
d = Domain().update()
response_data = {
"result": d,
}
return jsonify(response_data)
@app.route('/domain/<path:domain_name>', methods=['GET', 'POST']) @app.route('/domain/<path:domain_name>', methods=['GET', 'POST'])
@login_required @login_required