diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 6 |
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( |