mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 09:30:27 +00:00
Add domain refresh endpoint
This commit is contained in:
parent
734a6d5b32
commit
8b2083be77
11
app/views.py
11
app/views.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user