Add WIP /api/fileLists/JP/Bundle.json endpoint (may change)

This commit is contained in:
Ethan O'Brien
2026-04-28 14:41:49 -06:00
parent 4ee5b00aef
commit 11e40a09cf
3 changed files with 77869 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ pub mod items;
pub mod databases;
pub mod location;
pub mod event_ranking;
pub mod file_lists;
use actix_web::{
HttpResponse,
@@ -221,6 +222,7 @@ pub async fn request(req: HttpRequest, body: String) -> HttpResponse {
"/api/webui/listMusic" => webui::get_music_info(req),
"/api/webui/listLoginBonus" => webui::list_login_bonus(req),
"/api/webui/listItems" => webui::list_items(req),
"/api/fileLists/JP/Bundle.json" => file_lists::bundle(req),
_ => api_req(req, body).await
}
}

6
src/router/file_lists.rs Normal file
View File

@@ -0,0 +1,6 @@
use actix_web::{HttpResponse, HttpRequest};
pub fn bundle(_req: HttpRequest) -> HttpResponse {
HttpResponse::Ok().body(include_str!("file_lists/Bundle.json"))
}

File diff suppressed because it is too large Load Diff