mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 00:32:20 +08:00
Add masterdata healthcheck endpoint
This commit is contained in:
@@ -4,8 +4,12 @@ use crate::router::databases::csv::{self, Region};
|
||||
|
||||
pub fn routes(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::scope("/masterdata/{platform}/{LANG}")
|
||||
.route("/{MST}", web::get().to(mst))
|
||||
web::scope("/masterdata")
|
||||
.route("/supported", web::get().to(supported))
|
||||
.service(
|
||||
web::scope("/{platform}/{LANG}")
|
||||
.route("/{MST}", web::get().to(mst))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -26,3 +30,7 @@ async fn mst(req: HttpRequest) -> impl Responder {
|
||||
None => HttpResponse::NotFound().finish(),
|
||||
}
|
||||
}
|
||||
|
||||
async fn supported() -> impl Responder {
|
||||
"SUPPORTED"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user