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 | 01f4b7c677d36f8434adddf1aee7c314b9247959 (patch) | |
| tree | 8c145e95bab74c715fb3886a455788e3f1abac72 /examples | |
| parent | refactor(response): remove unused header struct (diff) | |
| download | windmark-01f4b7c677d36f8434adddf1aee7c314b9247959.tar.xz windmark-01f4b7c677d36f8434adddf1aee7c314b9247959.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, _| { |