fix: use lib in main
This commit is contained in:
parent
ab9040c5d9
commit
480fb7a744
@ -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())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user