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