+ Tiny thumbnail api
! Consider some new prefixes for the different API's
This commit is contained in:
parent
d5b8fba7f6
commit
5836258c25
@ -6,6 +6,7 @@ use rocket_dyn_templates::Template;
|
|||||||
mod page;
|
mod page;
|
||||||
mod category;
|
mod category;
|
||||||
mod video;
|
mod video;
|
||||||
|
mod thumbnail;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
@ -16,8 +17,10 @@ async fn main() {
|
|||||||
* CLIP_DIR
|
* CLIP_DIR
|
||||||
*/
|
*/
|
||||||
let _ = rocket::build()
|
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("/api", routes![category::list, video::list])
|
||||||
|
.mount("/thumbnail", routes![thumbnail::get])
|
||||||
.attach(Template::fairing())
|
.attach(Template::fairing())
|
||||||
.launch().await;
|
.launch().await;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user