mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
add workspace
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user