fix: use lib in main

This commit is contained in:
itsscb 2024-12-02 21:33:51 +01:00
parent ab9040c5d9
commit 480fb7a744

View File

@ -1,10 +1,9 @@
use axum::{routing::get, Router}; use itsscb_shuttlings_cch24::router;
use itsscb_shuttlings_cch24::hello_world;
#[shuttle_runtime::main] #[shuttle_runtime::main]
#[allow(clippy::unused_async)] #[allow(clippy::unused_async)]
async fn main() -> shuttle_axum::ShuttleAxum { async fn main() -> shuttle_axum::ShuttleAxum {
let router = Router::new().route("/", get(hello_world)); let router = router();
Ok(router.into()) Ok(router.into())
} }