MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / build_routes

Method build_routes

ch_11/mock-server/src/lib.rs:61–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 fn build_routes() -> impl Filter<Extract = impl Reply> + Clone {
62 warp::post()
63 .and(warp::path("bad_words"))
64 .and(warp::query())
65 .map(|_: HashMap<String, String>| ())
66 .and(warp::path::end())
67 .and(warp::body::bytes())
68 .and_then(Self::check_profanity)
69 }
70
71 pub fn oneshot(&self) -> OneshotHandler {
72 let (tx, rx) = oneshot::channel::<i32>();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected