feat: add hatter-test

This commit is contained in:
2022-10-07 00:31:00 +08:00
parent 20cd2d6877
commit 5337f7f61d
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
use axum::{routing::get, Router};
use sync_wrapper::SyncWrapper;
async fn hello_world() -> &'static str {
"Hello, world!"
}
#[shuttle_service::main]
async fn axum() -> shuttle_service::ShuttleAxum {
let router = Router::new().route("/hello", get(hello_world));
let sync_wrapper = SyncWrapper::new(router);
Ok(sync_wrapper)
}