mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 05:48:45 +00:00
parent
d8deed0475
commit
7ae132cb68
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@
|
||||||
routes defined with trailing slashes will become inaccessible when
|
routes defined with trailing slashes will become inaccessible when
|
||||||
using `NormalizePath::default()`.
|
using `NormalizePath::default()`.
|
||||||
|
|
||||||
Before: `#[get("/test/")`
|
Before: `#[get("/test/")]`
|
||||||
After: `#[get("/test")`
|
After: `#[get("/test")]`
|
||||||
|
|
||||||
Alternatively, explicitly require trailing slashes: `NormalizePath::new(TrailingSlash::Always)`.
|
Alternatively, explicitly require trailing slashes: `NormalizePath::new(TrailingSlash::Always)`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue