INNER CODE UNIT · Rust

get_v2root

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

async fn get_v2root(_auth_user: TrowToken) -> &'static str {
    "{}"
}
/*
 * Welcome message
 */
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())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…