fix: Use static assets from the public/ folder

This commit is contained in:
Araozu 2024-10-26 23:05:24 -05:00
parent ae2f654eeb
commit 289d5be4a3

View File

@ -1,6 +1,5 @@
#[macro_use] #[macro_use]
extern crate rocket; extern crate rocket;
use core::time;
use std::{ use std::{
path::Path, path::Path,
time::{SystemTime, UNIX_EPOCH}, time::{SystemTime, UNIX_EPOCH},
@ -138,8 +137,6 @@ fn skeleton(children: Markup) -> Markup {
#[launch] #[launch]
fn rocket() -> _ { fn rocket() -> _ {
std::thread::sleep(time::Duration::from_secs(30));
let static_files_path = Path::new("./public"); let static_files_path = Path::new("./public");
rocket::build() rocket::build()