From 36d26e15f23f2eec98c17aa51209b56005193f1d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 6 Apr 2023 08:35:28 +0000 Subject: refactor(context): rename params to parameters --- examples/windmark.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/windmark.rs b/examples/windmark.rs index 677a694..e7e0a5c 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -133,7 +133,10 @@ async fn main() -> Result<(), Box> { "/param/:lang", success!( context, - format!("Parameter lang is {}", context.params.get("lang").unwrap()) + format!( + "Parameter lang is {}", + context.parameters.get("lang").unwrap() + ) ), ); router.mount( @@ -142,8 +145,8 @@ async fn main() -> Result<(), Box> { context, format!( "{} {}", - context.params.get("first").unwrap(), - context.params.get("last").unwrap() + context.parameters.get("first").unwrap(), + context.parameters.get("last").unwrap() ) ), ); -- cgit v1.2.3