From 8b2083be77812a0071cecd141caf1d75e6c63043 Mon Sep 17 00:00:00 2001 From: Jeroen Boonstra Date: Fri, 8 Jun 2018 13:21:17 +0200 Subject: [PATCH] Add domain refresh endpoint --- app/views.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/views.py b/app/views.py index 1e15aec..0f18aa1 100644 --- a/app/views.py +++ b/app/views.py @@ -547,6 +547,17 @@ def dashboard_domains(): } 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/', methods=['GET', 'POST']) @login_required