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:
@@ -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();
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user