lenso-platform-http 0.1.22

HTTP primitives for the Lenso backend framework.
Documentation
1
2
3
4
5
6
7
8
9
use axum::Json;
use serde::Serialize;

pub fn json<T>(body: T) -> Json<T>
where
    T: Serialize,
{
    Json(body)
}