aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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| {