+ Tiny thumbnail api

! Consider some new prefixes for the different API's
This commit is contained in:
shockrah 2021-10-12 11:18:58 -07:00
parent d5b8fba7f6
commit 5836258c25

View File

@ -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;
}