1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

fix examples

This commit is contained in:
Nikolay Kim
2018-01-02 15:52:11 -08:00
parent f0fdcc9936
commit 3768a2885d
3 changed files with 3 additions and 6 deletions

View File

@ -84,8 +84,7 @@ fn main() {
}
}))
// static files
.resource("/static/{tail:.*}",
|r| r.h(fs::StaticFiles::new("tail", "../static/", true)))
.handler("/static/", fs::StaticFiles::new("tail", "../static/", true))
// redirect
.resource("/", |r| r.method(Method::GET).f(|req| {
println!("{:?}", req);