1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 01:31:57 +02:00

remove Applicaiton::route, resource is enough

This commit is contained in:
Nikolay Kim
2017-12-06 08:03:08 -08:00
parent 04ded5ba68
commit 87c7441f7d
11 changed files with 53 additions and 58 deletions

View File

@@ -33,7 +33,7 @@ use actix_web::*;
fn main() {
Application::default("/")
.route("/static", |r| r.h(fs::StaticFiles::new(".", true)))
.resource("/static", |r| r.h(fs::StaticFiles::new(".", true)))
.finish();
}
```