Normalize paths
This commit is contained in:
parent
67a0f565d3
commit
bd6bffeafb
@ -120,6 +120,7 @@ fn main() -> Result<()> {
|
|||||||
App::new()
|
App::new()
|
||||||
.data(Client::new())
|
.data(Client::new())
|
||||||
.wrap(middleware::Logger::default())
|
.wrap(middleware::Logger::default())
|
||||||
|
.wrap(middleware::NormalizePath)
|
||||||
.service(favicon32)
|
.service(favicon32)
|
||||||
.route(
|
.route(
|
||||||
"/github/{user}/{repo}/{commit}/{file:.*}",
|
"/github/{user}/{repo}/{commit}/{file:.*}",
|
||||||
|
Loading…
Reference in New Issue
Block a user