We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0ce897 commit 42f804eCopy full SHA for 42f804e
src/main.rs
@@ -1,6 +1,6 @@
1
#[macro_use] extern crate rocket;
2
3
-use rocket::fs::{FileServer, relative};
+use rocket::fs::FileServer;
4
5
use std::fs::File;
6
use std::io::Read;
@@ -80,5 +80,5 @@ fn hello() -> &'static str {
80
fn rocket() -> _ {
81
rocket::build()
82
.mount("/", routes![hello, get_json, data])
83
- .mount("/", FileServer::from(relative!("src/public")))
+ .mount("/", FileServer::from("src/public"))
84
}
0 commit comments