Skip to content

Commit 37d9577

Browse files
committed
Add vespera to http method
1 parent 02eba94 commit 37d9577

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"crates/vespera_macro/Cargo.toml":"Patch","crates/vespera/Cargo.toml":"Patch","crates/vespera_core/Cargo.toml":"Patch"},"note":"Add vespera to http token","date":"2025-11-26T07:05:36.067604700Z"}

crates/vespera_macro/src/method.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ use vespera_core::route::HttpMethod;
55
/// Convert HttpMethod to axum routing TokenStream
66
pub fn http_method_to_token_stream(method: HttpMethod) -> TokenStream {
77
match method {
8-
HttpMethod::Get => quote! { axum::routing::get },
9-
HttpMethod::Post => quote! { axum::routing::post },
10-
HttpMethod::Put => quote! { axum::routing::put },
11-
HttpMethod::Patch => quote! { axum::routing::patch },
12-
HttpMethod::Delete => quote! { axum::routing::delete },
13-
HttpMethod::Head => quote! { axum::routing::head },
14-
HttpMethod::Options => quote! { axum::routing::options },
15-
HttpMethod::Trace => quote! { axum::routing::trace },
8+
HttpMethod::Get => quote! { vespera::axum::routing::get },
9+
HttpMethod::Post => quote! { vespera::axum::routing::post },
10+
HttpMethod::Put => quote! { vespera::axum::routing::put },
11+
HttpMethod::Patch => quote! { vespera::axum::routing::patch },
12+
HttpMethod::Delete => quote! { vespera::axum::routing::delete },
13+
HttpMethod::Head => quote! { vespera::axum::routing::head },
14+
HttpMethod::Options => quote! { vespera::axum::routing::options },
15+
HttpMethod::Trace => quote! { vespera::axum::routing::trace },
1616
}
1717
}
18-

0 commit comments

Comments
 (0)