mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 13:57:39 +03:00
http server accepts factory of HttpHandlers
This commit is contained in:
parent
b9da09ddf0
commit
e9aa67b75d
9 changed files with 34 additions and 31 deletions
|
@ -57,7 +57,7 @@ fn main() {
|
|||
let sys = actix::System::new("ws-example");
|
||||
|
||||
HttpServer::new(
|
||||
Application::new()
|
||||
|| Application::new()
|
||||
// enable logger
|
||||
.middleware(middlewares::Logger::default())
|
||||
// cookie session middleware
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue