mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 08:42:20 +08:00
Add WIP masterdata endpoint
This commit is contained in:
@@ -28,6 +28,7 @@ pub mod databases;
|
||||
pub mod location;
|
||||
pub mod event_ranking;
|
||||
pub mod file_lists;
|
||||
mod master_data;
|
||||
|
||||
use actix_web::{
|
||||
HttpResponse,
|
||||
@@ -222,8 +223,15 @@ 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn configure(cfg: &mut actix_web::web::ServiceConfig) {
|
||||
cfg.service(
|
||||
actix_web::web::scope("/api")
|
||||
.configure(file_lists::routes)
|
||||
.configure(master_data::routes)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user