pub fn ok<T: Serialize>(data: T) -> Json<ApiResponse<T>>Expand description
Helper to wrap data in a successful response without pagination.
ยงExamples
use ironflow_api::response::ok;
let data = vec!["a", "b"];
let response = ok(data);
// Returns: { "data": ["a", "b"] }