aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-02 01:28:47 +0000
committerFuwn <[email protected]>2023-04-02 01:28:47 +0000
commit63249d1077a6c46da32e468c5c85e97c52115826 (patch)
tree2804c348894fb20d3164dc4218b35ef24ca3ba85 /examples
parentrefactor(src): clean up string generics (diff)
downloadwindmark-63249d1077a6c46da32e468c5c85e97c52115826.tar.xz
windmark-63249d1077a6c46da32e468c5c85e97c52115826.zip
feat(respones): accept generic bytes for binary_success
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 ef2813c..4b2b1fc 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -186,6 +186,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
router.mount("/file", {
windmark::binary_success!(include_bytes!("../LICENSE"), "text/plain")
});
+ router.mount("/string-file", {
+ windmark::binary_success!("hi", "text/plain")
+ });
router.mount(
"/secret",
Box::new(|context| {