Add robots.txt (#542)

This commit is contained in:
mdecimus 2024-06-18 15:32:47 +02:00
parent ae2a67422f
commit 41115e0b34

View file

@ -340,6 +340,13 @@ impl JMAP {
.await;
}
}
"robots.txt" => {
return Resource {
content_type: "text/plain",
contents: b"User-agent: *\nDisallow: /\n".to_vec(),
}
.into_http_response();
}
_ => {
let path = req.uri().path();
return match self