Simplify simple example further
This commit is contained in:
parent
d65409a3ea
commit
49612d642c
1 changed files with 0 additions and 4 deletions
|
@ -3,7 +3,3 @@ use axum::response::{Html, IntoResponse};
|
||||||
pub async fn get() -> impl IntoResponse {
|
pub async fn get() -> impl IntoResponse {
|
||||||
Html("<h1>Hello World!</h1>").into_response()
|
Html("<h1>Hello World!</h1>").into_response()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn post() -> impl IntoResponse {
|
|
||||||
"Posted successfully".into_response()
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue