aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-07-24 00:46:30 +0000
committerFuwn <[email protected]>2024-07-24 00:46:30 +0000
commit09f8d20e943631d2fe3facb8924ad64c9f0ced05 (patch)
tree10c08f19377965fb777b744889093cf8c12c3937 /src
parentstyle(response): clippy cleanup (diff)
downloadseptember-09f8d20e943631d2fe3facb8924ad64c9f0ced05.tar.xz
september-09f8d20e943631d2fe3facb8924ad64c9f0ced05.zip
feat(response): update proxy documentation
Diffstat (limited to 'src')
-rw-r--r--src/response.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/response.rs b/src/response.rs
index 70c8811..2863d8b 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -15,13 +15,13 @@ pub async fn default(
if ["/proxy", "/proxy/", "/x", "/x/", "/raw", "/raw/", "/nocss", "/nocss/"]
.contains(&http_request.path())
{
- return Ok(
- HttpResponse::Ok()
+ return Ok(HttpResponse::Ok()
.content_type("text/html")
- .body(r#"<pre>This is a proxy path. Please specify a Gemini URL without the "gemini://" to proxy.
-
-For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime".</pre>"#),
- );
+ .body(r"<h1>September</h1>
+<p>This is a proxy path. Specify a Gemini URL without the protocol (<code>gemini://</code>) to proxy it.</p>
+<p>To proxy <code>gemini://fuwn.me/uptime</code>, visit <code>https://fuwn.me/proxy/fuwn.me/uptime</code>.</p>
+<p>Additionally, you may visit <code>/raw</code> to view the raw Gemini content, or <code>/nocss</code> to view the content without CSS.</p>
+ "));
}
let mut configuration = configuration::Configuration::new();