mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
8 lines
280 B
Rust
8 lines
280 B
Rust
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
|
|
}
|