changed path to a relative one
This commit is contained in:
parent
87619639fb
commit
fe92cc35f0
@ -1,5 +1,5 @@
|
||||
#[macro_use] extern crate rocket;
|
||||
use rocket::{Rocket, Build, fs::FileServer};
|
||||
use rocket::{Rocket, Build, fs::{FileServer, relative}};
|
||||
|
||||
#[get("/")]
|
||||
fn index() -> String {
|
||||
@ -10,5 +10,5 @@ fn index() -> String {
|
||||
fn rocket() -> Rocket<Build> {
|
||||
rocket::build()
|
||||
.mount("/", routes![index])
|
||||
.mount("/", FileServer::from("/Users/arlo/Desktop/p5stuff/cs_coursework/website"))
|
||||
.mount("/", FileServer::from(relative!("website")))
|
||||
}
|
Loading…
Reference in New Issue
Block a user