Added robots.txt (to be verified working)

This commit is contained in:
2025-11-06 11:08:27 +01:00
parent 4e53f9ed1f
commit c7377e06e3

View File

@@ -17,3 +17,10 @@ async fn file(file: Path<(String, String)>, data: web::Data<AppState>) -> impl R
}; };
HttpResponse::Ok().body(bytes) HttpResponse::Ok().body(bytes)
} }
#[get("/robots.txt")]
async fn robots() -> impl Responder {
"User-agent: *\
Disallow: /\
Allow: /$"
}