torrust-index-backend 2.0.0-alpha.3

The backend (API) for the Torrust Index project.
Documentation
1
2
3
4
5
6
7
8
use axum::response::{IntoResponse, Response};
use bytes::Bytes;
use hyper::{header, StatusCode};

#[must_use]
pub fn png_image(bytes: Bytes) -> Response {
    (StatusCode::OK, [(header::CONTENT_TYPE, "image/png")], bytes).into_response()
}