UI: Use a spacier layout

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2021-12-26 21:01:56 +05:30
parent 3e10267caf
commit 53d96865ad
11 changed files with 171 additions and 118 deletions

View File

@@ -2,7 +2,7 @@ use rocket::fs::NamedFile;
use rocket::response::status::NotFound;
use std::path::{Path, PathBuf};
#[get("/<file..>", rank = 3)]
#[get("/static/<file..>")]
pub async fn static_files(file: PathBuf) -> Result<NamedFile, NotFound<String>> {
NamedFile::open(Path::new("static/").join(file))
.await