Alphabetize functions.

This commit is contained in:
voussoir 2022-07-22 16:43:29 -07:00
parent 47c879764a
commit d61f504d60
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -18,14 +18,6 @@ def get_admin():
return common.render_template(request, 'admin.html') return common.render_template(request, 'admin.html')
@site.route('/admin/reload_config', methods=['POST'])
def post_reload_config():
if not request.is_localhost:
return flasktools.json_response({}, status=403)
common.P.load_config()
return flasktools.json_response({})
@site.route('/admin/dbdownload') @site.route('/admin/dbdownload')
def get_dbdump(): def get_dbdump():
if not request.is_localhost: if not request.is_localhost:
@ -41,3 +33,11 @@ def get_dbdump():
'Content-Disposition': f'attachment; filename*=UTF-8\'\'{download_as}', 'Content-Disposition': f'attachment; filename*=UTF-8\'\'{download_as}',
} }
return flask.Response(binary, headers=outgoing_headers) return flask.Response(binary, headers=outgoing_headers)
@site.route('/admin/reload_config', methods=['POST'])
def post_reload_config():
if not request.is_localhost:
return flasktools.json_response({}, status=403)
common.P.load_config()
return flasktools.json_response({})