mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
refactor logger middleware
This commit is contained in:
parent
657efb8cce
commit
265628750c
11 changed files with 192 additions and 154 deletions
|
@ -134,7 +134,7 @@ fn main() {
|
|||
HttpServer::new(
|
||||
Application::default("/")
|
||||
// enable logger
|
||||
.middleware(middlewares::Logger::new(None))
|
||||
.middleware(middlewares::Logger::default())
|
||||
// websocket route
|
||||
.resource("/ws/", |r| r.get::<MyWebSocket>())
|
||||
.route_handler("/", StaticFiles::new("examples/static/", true)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue