mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 00:32:20 +08:00
Add WIP /api/fileLists/JP/Bundle.json endpoint (may change)
This commit is contained in:
@@ -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
6
src/router/file_lists.rs
Normal 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"))
|
||||
}
|
||||
77861
src/router/file_lists/Bundle.json
Normal file
77861
src/router/file_lists/Bundle.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user