|
|
@@ -22,11 +22,12 @@ fn get() -> String {
|
|
|
}
|
|
|
|
|
|
#[get("/")]
|
|
|
-fn test() -> String {
|
|
|
+fn test() -> File {
|
|
|
let mut f = std::fs::File::open("index.html").unwrap();
|
|
|
- let mut contents = String::new();
|
|
|
- f.read_to_string(&mut contents).unwrap();
|
|
|
- contents
|
|
|
+ f
|
|
|
+// let mut contents = String::new();
|
|
|
+// f.read_to_string(&mut contents).unwrap();
|
|
|
+// contents
|
|
|
}
|
|
|
|
|
|
#[get("/<obj>")]
|