mirror of
https://git.kittycat.homes/zoe/wisdom.git
synced 2024-08-15 03:26:36 +00:00
final touches before it's done
This commit is contained in:
parent
8b2da63f3c
commit
93931685b6
7 changed files with 96 additions and 49 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue