/axum-route

Simple route macro for Axum

Primary LanguageRust

axum-route

use axum::routing::get;
use axum_route::route;

#[route(get, "/")]
pub async fn index() -> String {
    "Hello World!".into_string()
}