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

added StaticFiles basic impl

This commit is contained in:
Nikolay Kim
2017-10-16 01:19:23 -07:00
parent fa6bc35dbd
commit ba1a73443e
8 changed files with 186 additions and 14 deletions

View File

@ -109,6 +109,7 @@ fn main() {
r.get::<MyRoute>();
r.post::<MyRoute>();
})
.route_handler("/static", StaticFiles::new(".", true))
.finish())
.resource("/test", |r| r.post::<MyRoute>())
.resource("/ws/", |r| r.get::<MyWS>())