From 43dc61f4158b613e0283571eff6e995403adceba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Thiede?= Date: Sun, 29 Oct 2023 11:23:22 +0100 Subject: [PATCH] switch "downzonefile" to "zonefile" --- core/admin/mailu/ui/views/domains.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin/mailu/ui/views/domains.py b/core/admin/mailu/ui/views/domains.py index fcbe70a2..3dc0fcdb 100644 --- a/core/admin/mailu/ui/views/domains.py +++ b/core/admin/mailu/ui/views/domains.py @@ -70,9 +70,9 @@ def domain_details(domain_name): domain = models.Domain.query.get(domain_name) or flask.abort(404) return flask.render_template('domain/details.html', domain=domain) -@ui.route('/domain/details//downzonefile', methods=['GET']) +@ui.route('/domain/details//zonefile', methods=['GET']) @access.domain_admin(models.Domain, 'domain_name') -def domain_details(domain_name): +def domain_download_zonefile(domain_name): domain = models.Domain.query.get(domain_name) or flask.abort(404) final = domain.dns_mx+"\n" final = final + domain.dns_spf+"\n"