13 lines
257 B
Rust
13 lines
257 B
Rust
|
use axum::{routing::get, Router};
|
||
|
|
||
|
async fn hello_world() -> &'static str {
|
||
|
"Hello, world!"
|
||
|
}
|
||
|
|
||
|
#[shuttle_runtime::main]
|
||
|
async fn main() -> shuttle_axum::ShuttleAxum {
|
||
|
let router = Router::new().route("/", get(hello_world));
|
||
|
|
||
|
Ok(router.into())
|
||
|
}
|