1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-14 04:41:15 +00:00

fix readme

This commit is contained in:
Nikolay Kim 2017-11-09 22:18:59 -08:00
parent 40c1d3b711
commit 657efb8cce

View file

@ -134,7 +134,7 @@ fn main() {
HttpServer::new(
Application::default("/")
// enable logger
.middleware(Logger::new(None))
.middleware(middlewares::Logger::new(None))
// websocket route
.resource("/ws/", |r| r.get::<MyWebSocket>())
.route_handler("/", StaticFiles::new("examples/static/", true)))