1
0
mirror of https://github.com/CCC-MF/bwhc-kafka-rest-proxy.git synced 2025-04-19 19:16:51 +00:00

feat: add routes to /mtb

This commit is contained in:
Paul-Christian Volkmer 2025-04-07 20:18:32 +02:00
parent 2a6e4a5c8c
commit 5aa1c57d0d

View File

@ -70,6 +70,8 @@ async fn main() -> Result<(), ()> {
let app = Router::new() let app = Router::new()
.route("/mtbfile", post(handle_post)) .route("/mtbfile", post(handle_post))
.route("/mtbfile/:patient_id", delete(handle_delete)) .route("/mtbfile/:patient_id", delete(handle_delete))
.route("/mtb", post(handle_post))
.route("/mtb/:patient_id", delete(handle_delete))
.layer(Extension(sender)) .layer(Extension(sender))
.layer(from_fn(check_content_type_header)) .layer(from_fn(check_content_type_header))
.layer(from_fn(check_basic_auth)); .layer(from_fn(check_basic_auth));