1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

add workspace

This commit is contained in:
Nikolay Kim
2018-04-13 12:32:15 -07:00
parent 3a4a0e5b81
commit 1dea2cf3c3
38 changed files with 2494 additions and 906 deletions

View File

@ -109,7 +109,7 @@ fn main() {
io::Error::new(io::ErrorKind::Other, "test"), StatusCode::OK)
}))
// static files
.handler("/static/", fs::StaticFiles::new("../static/"))
.handler("/static/", fs::StaticFiles::new("static/"))
// redirect
.resource("/", |r| r.method(Method::GET).f(|req| {
println!("{:?}", req);