mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Replace rc_static_data with general CDN implementation
This commit is contained in:
1 parent
4f0bcde7d8
commit
e7de53929d
16 files changed
+553
-141
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
pub mod live_data;
|
||||
Reference in new issue
Block a user