@server_blueprint.route('/options', methods=['POST'])
@login_required
def save_items():
    request_data = request.get_json()
    config = save_config(current_app.config['PZ_SERVER_CONFIG'], request_data)
    export_config = {'WorkshopItems': prepared_config_to_view(config['WorkshopItems']), 'Mods': prepared_config_to_view(config['Mods'])}
    return jsonify(export_config)
@server_blueprint.route('/options', methods=['POST'])
@login_required
def save_items():
    request_data = request.get_json()
    config = save_config(current_app.config['PZ_SERVER_CONFIG'], request_data)
    export_config = {'WorkshopItems': prepared_config_to_view(config['WorkshopItems']), 'Mods': prepared_config_to_view(config['Mods'])}
    return jsonify(export_config)