mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add default image to CDN, favicon to registration, create logo
This commit is contained in:
1 parent
297a2ab246
commit
6ddea92a87
14 files changed
+495
-7
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user