diff --git a/src/pages/files.rs b/src/pages/files.rs index 9e53fe6..e8d4d35 100644 --- a/src/pages/files.rs +++ b/src/pages/files.rs @@ -17,3 +17,10 @@ async fn file(file: Path<(String, String)>, data: web::Data) -> impl R }; HttpResponse::Ok().body(bytes) } + +#[get("/robots.txt")] +async fn robots() -> impl Responder { + "User-agent: *\ + Disallow: /\ + Allow: /$" +}