1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-18 05:41:50 +01: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( HttpServer::new(
Application::default("/") Application::default("/")
// enable logger // enable logger
.middleware(Logger::new(None)) .middleware(middlewares::Logger::new(None))
// websocket route // websocket route
.resource("/ws/", |r| r.get::<MyWebSocket>()) .resource("/ws/", |r| r.get::<MyWebSocket>())
.route_handler("/", StaticFiles::new("examples/static/", true))) .route_handler("/", StaticFiles::new("examples/static/", true)))