@server_blueprint.route('/options/export')
@login_required
def export_server_config():
    export_config = get_config(current_app.config['PZ_SERVER_CONFIG'])
    return current_app.response_class(formatted_config_lines(export_config), mimetype='text/event-stream', headers={'Content-Disposition': 'attachment;filename=server_config.ini'})
@server_blueprint.route('/options/export')
@login_required
def export_server_config():
    export_config = get_config(current_app.config['PZ_SERVER_CONFIG'])
    return current_app.response_class(formatted_config_lines(export_config), mimetype='text/event-stream', headers={'Content-Disposition': 'attachment;filename=server_config.ini'})