INNER CODE UNIT · Rust

get_homepage

Trow-Registry/trow · src/routes/mod.rs:144

async fn get_homepage<'a>() -> Html<'a> {
    const ROOT_RESPONSE: &str = "<!DOCTYPE html><html><body>
<h1>Welcome to Trow, the cluster registry</h1>
</body></html>";

    Html(ROOT_RESPONSE)
}

// // Want non HTML return for 404 for docker client
// #[catch(404)]
// fn not_found(_: &Request) -> Json<String> {
//     Json("404 page not found".to_string())
// }

// #[catch(401)]
// fn no_auth(_req: &Request) -> Authenticate {
//     Authenticate {}
// }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…