diff --git a/api/src/main.rs b/api/src/main.rs index aa2c46d..d83b438 100644 --- a/api/src/main.rs +++ b/api/src/main.rs @@ -6,6 +6,7 @@ use rocket_dyn_templates::Template; mod page; mod category; mod video; +mod thumbnail; #[tokio::main] async fn main() { @@ -16,8 +17,10 @@ async fn main() { * CLIP_DIR */ let _ = rocket::build() - .mount("/", routes![page::home, page::category, page::video, page::files]) + .mount("/", routes![page::home, page::category, page::video]) + .mount("/static", routes![page::files]) .mount("/api", routes![category::list, video::list]) + .mount("/thumbnail", routes![thumbnail::get]) .attach(Template::fairing()) .launch().await; }