mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 05:48:45 +00:00
fix readme
This commit is contained in:
parent
40c1d3b711
commit
657efb8cce
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue