aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-26 05:35:50 +0000
committerFuwn <[email protected]>2022-03-26 05:35:50 +0000
commitab626a81e1339623941c6f57f55bbf5018805676 (patch)
treee4232e1c49eaa2016b11ffa233f12e6f4bb34799 /examples
parentfeat: expose url to route (diff)
downloadwindmark-ab626a81e1339623941c6f57f55bbf5018805676.tar.xz
windmark-ab626a81e1339623941c6f57f55bbf5018805676.zip
feat(utilities): queries_from_url
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index 378d0ad..bd31a5b 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -55,5 +55,8 @@ fn main() -> std::io::Result<()> {
.as_nanos()
.to_string()
})
+ .mount("/query", |_, url| {
+ format!("queries: {:?}", windmark::utilities::queries_from_url(&url))
+ })
.run()
}