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 1cccd70..e1e576e 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -108,6 +108,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
})
.mount("/error", |_| Response::CertificateNotValid("no".into()))
+ .mount("/redirect", |_| {
+ Response::PermanentRedirect("gemini://localhost/test".into())
+ })
.run()
.await
}