final touches before it's done

This commit is contained in:
zoe 2022-01-20 17:35:50 +01:00
parent 8b2da63f3c
commit 93931685b6
7 changed files with 96 additions and 49 deletions

View file

@ -1,7 +1,7 @@
#[macro_use]
extern crate rocket;
use rocket_dyn_templates::Template;
use rocket::fs::{FileServer, relative};
use rocket::fs::{FileServer, relative, NamedFile};
#[macro_use]
extern crate lazy_static;
use clap::Parser;
@ -19,8 +19,8 @@ lazy_static! {
}
#[get("/")]
fn index() -> String {
"Hello".to_string()
async fn index() -> Option<NamedFile> {
NamedFile::open("static/index.html").await.ok()
}
#[get("/cooking")]