MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / main

Function main

examples/http-axum-middleware/src/main.rs:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29#[tokio::main]
30async fn main() -> Result<(), Error> {
31 tracing::init_default_subscriber();
32
33 let app = Router::new()
34 .route("/testStage/hello/world", post(handler_sample))
35 .route_layer(axum::middleware::from_fn(mw_sample));
36
37 run(app).await
38}

Callers

nothing calls this directly

Calls 2

init_default_subscriberFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected