diff options
| author | Fuwn <[email protected]> | 2022-03-26 10:34:01 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-26 10:34:01 +0000 |
| commit | 2b820e426f8d60448761121875daa542b6389efc (patch) | |
| tree | 8c145e95bab74c715fb3886a455788e3f1abac72 /examples | |
| parent | refactor(response): remove unused header struct (diff) | |
| download | windmark-2b820e426f8d60448761121875daa542b6389efc.tar.xz windmark-2b820e426f8d60448761121875daa542b6389efc.zip | |
refactor(mount): dynamic format
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs index f45c9a7..2a4bbf9 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -78,7 +78,7 @@ fn main() -> std::io::Result<()> { windmark::utilities::queries_from_url(&url) )) }) - .mount("/param/:lang", |_, _url, dynamic_parameter| { + .mount("/param/<lang>", |_, _url, dynamic_parameter| { Response::Success(format!("Parameter lang is {:?}", dynamic_parameter)) }) .mount("/input", |_, url, _| { |