def feature_data(): if request.method == 'POST': feature_idx_list = request.json['feature_idx_list'] feature_data = calc_feature_distribution(feature_idx_list) return feature_data