Skip to content

Commit

Permalink
Merge pull request #1154 from lonelyhentxi/fix-method-action
Browse files Browse the repository at this point in the history
fix: fix method action regex to extract Route MethodRouter
  • Loading branch information
jondot authored Jan 8, 2025
2 parents 29e2000 + beb890e commit e54d1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/describe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::app::AppContext;
static DESCRIBE_METHOD_ACTION: OnceLock<Regex> = OnceLock::new();

fn get_describe_method_action() -> &'static Regex {
DESCRIBE_METHOD_ACTION.get_or_init(|| Regex::new(r"\b(\w+):\s*BoxedHandler\b").unwrap())
DESCRIBE_METHOD_ACTION.get_or_init(|| Regex::new(r"\b(\w+):\s*(BoxedHandler|Route)\b").unwrap())
}

/// Extract the allow list method actions from [`MethodRouter`].
Expand Down

0 comments on commit e54d1ac

Please sign in to comment.