mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 08:42: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) {
|
pub fn routes(cfg: &mut web::ServiceConfig) {
|
||||||
cfg.service(
|
cfg.service(
|
||||||
web::scope("/masterdata/{platform}/{LANG}")
|
web::scope("/masterdata")
|
||||||
.route("/{MST}", web::get().to(mst))
|
.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(),
|
None => HttpResponse::NotFound().finish(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async fn supported() -> impl Responder {
|
||||||
|
"SUPPORTED"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user