mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
[pitboss/grind] deferred session-0009 (20260520T233019Z-6958)
This commit is contained in:
parent
a6f34554db
commit
38cc0ce05f
60 changed files with 509 additions and 541 deletions
|
|
@ -38,11 +38,10 @@ fn verb_for(name: &str) -> Option<HttpMethod> {
|
|||
fn class_path_prefix(class: Node<'_>, bytes: &[u8]) -> String {
|
||||
let mut prefix = String::new();
|
||||
iter_annotations(class, bytes, |ann, name| {
|
||||
if name == "Path" {
|
||||
if let Some(p) = annotation_string_arg(ann, bytes) {
|
||||
if name == "Path"
|
||||
&& let Some(p) = annotation_string_arg(ann, bytes) {
|
||||
prefix = p;
|
||||
}
|
||||
}
|
||||
});
|
||||
prefix
|
||||
}
|
||||
|
|
@ -57,11 +56,10 @@ fn method_verb_and_path(
|
|||
if let Some(v) = verb_for(name) {
|
||||
verb = Some(v);
|
||||
}
|
||||
if name == "Path" {
|
||||
if let Some(p) = annotation_string_arg(ann, bytes) {
|
||||
if name == "Path"
|
||||
&& let Some(p) = annotation_string_arg(ann, bytes) {
|
||||
path = p;
|
||||
}
|
||||
}
|
||||
});
|
||||
Some((verb?, path))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue