Add default image to CDN, favicon to registration, create logo

This commit is contained in:
NG (Graham) committed 2025-06-01 17:51:12 -04:00
1 parent 297a2ab246
commit 6ddea92a87
14 files changed
+495 -7

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
use actix_web::{get, Responder, web::Data};
#[get("/robocraft/favicon")]
pub async fn get(cli: Data<crate::cli::CliArgs>) -> impl Responder {
let path = std::path::PathBuf::from(&cli.assets_robocraft).join("favicon.jpg");
actix_files::NamedFile::open_async(path).await
}