Fix style.css Content-Type and add robots.txt
This commit is contained in:
@ -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")]
|
||||
|
Reference in New Issue
Block a user