Use official logo in Goose web (#3012)

Co-authored-by: Sam Bradbury <Sam Bradbury>
This commit is contained in:
Sam Bradbury
2025-06-19 18:47:56 -05:00
committed by GitHub
parent 09a0079094
commit 082dafd55b
3 changed files with 32 additions and 12 deletions
+10
View File
@@ -199,6 +199,16 @@ async fn serve_static(axum::extract::Path(path): axum::extract::Path<String>) ->
include_str!("../../static/script.js"),
)
.into_response(),
"img/logo_dark.png" => (
[("content-type", "image/png")],
include_bytes!("../../../../documentation/static/img/logo_dark.png").to_vec(),
)
.into_response(),
"img/logo_light.png" => (
[("content-type", "image/png")],
include_bytes!("../../../../documentation/static/img/logo_light.png").to_vec(),
)
.into_response(),
_ => (axum::http::StatusCode::NOT_FOUND, "Not found").into_response(),
}
}