Fix style.css Content-Type and add robots.txt
This commit is contained in:
parent
0a3f333a97
commit
2236567b58
@ -12,7 +12,7 @@ mod user;
|
||||
#[get("/style.css")]
|
||||
async fn style() -> HttpResponse {
|
||||
let file = fs::read_to_string("static/style.css").expect("ERROR: Could not read style.css");
|
||||
HttpResponse::Ok().body(file)
|
||||
HttpResponse::Ok().content_type("text/css").body(file)
|
||||
}
|
||||
|
||||
#[get("/favicon.ico")]
|
||||
|
2
static/robots.txt
Normal file
2
static/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-Agent: *
|
||||
Disallow: /
|
Loading…
Reference in New Issue
Block a user