axum-folder-router/examples/simple/api/route.rs

5 lines
137 B
Rust

use axum::response::{Html, IntoResponse};
pub async fn get() -> impl IntoResponse {
Html("<h1>Hello World!</h1>").into_response()
}