diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs index ed6bc9f..6ceeaf7 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -111,6 +111,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { .mount("/redirect", |_| { Response::PermanentRedirect("gemini://localhost/test".into()) }) + .mount("/file", |_| { + Response::SuccessFile(include_bytes!("../LICENSE")) + }) .run() .await } |