Replace rc_static_data with general CDN implementation

This commit is contained in:
NG (Graham) committed 2025-05-24 13:42:53 -04:00
1 parent 4f0bcde7d8
commit e7de53929d
16 files changed
+553 -141

No files matched your search

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