added fileserver and index.html
This commit is contained in:
parent
fe92cc35f0
commit
6797e6a952
@ -9,6 +9,6 @@ fn index() -> String {
|
||||
#[launch]
|
||||
fn rocket() -> Rocket<Build> {
|
||||
rocket::build()
|
||||
.mount("/", routes![index])
|
||||
// .mount("/", routes![index])
|
||||
.mount("/", FileServer::from(relative!("website")))
|
||||
}
|
12
website/index.html
Normal file
12
website/index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
Hello Fileserver
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user