API return OK (need make dynamic)

This commit is contained in:
BitHeaven 2024-03-22 15:24:15 +05:00
parent abb2ac6c12
commit 0ad0a8cf0b

View File

@ -32,5 +32,5 @@ pub async fn endpoint(req: Request<Incoming>, pool: DBPool) -> (String, StatusCo
}; };
let restype: HeaderValue = "application/json".parse().unwrap(); let restype: HeaderValue = "application/json".parse().unwrap();
(res.to_string(), StatusCode::IM_A_TEAPOT, restype) (res.to_string(), StatusCode::OK, restype)
} }