Add masterdata healthcheck endpoint

This commit is contained in:
Ethan O'Brien
2026-05-03 10:47:22 -05:00
parent d017fc43bb
commit 67a849e506

View File

@@ -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"
}