From 5836258c2564617351708823d14efbd10777ac2f Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 12 Oct 2021 11:18:58 -0700 Subject: [PATCH] + Tiny thumbnail api ! Consider some new prefixes for the different API's --- api/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }