mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 13:57:39 +03:00
simplify application creation
This commit is contained in:
parent
87c7441f7d
commit
c63f058647
26 changed files with 150 additions and 138 deletions
|
@ -57,7 +57,7 @@ fn main() {
|
|||
let sys = actix::System::new("ws-example");
|
||||
|
||||
HttpServer::new(
|
||||
Application::default("/")
|
||||
Application::new("/")
|
||||
// enable logger
|
||||
.middleware(middlewares::Logger::default())
|
||||
// cookie session middleware
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue