Skip to main content

handle_all_books_request

Function handle_all_books_request 

Source
pub async fn handle_all_books_request<B>(
    req: Request<B>,
    static_: Static,
    index_html: Arc<String>,
) -> Result<Response<BoxBody<Bytes, Error>>, Error>
Expand description

handle request for the --all index page.

Serves the provided index_html for the root path /, and delegates everything else to the underlying static file server.