aboutsummaryrefslogtreecommitdiff
path: root/examples/windmark.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/windmark.rs')
-rw-r--r--examples/windmark.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index 80b0cba..736eb54 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -103,6 +103,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}),
);
router.mount(
+ "/specific-mime",
+ Box::new(|_| {
+ Response::SuccessWithMime("hi".to_string(), "text/plain".to_string())
+ }),
+ );
+ router.mount(
"/ip",
Box::new(|context| {
Response::Success(