1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

Update to master (#90)

This commit is contained in:
Juan Aguilar
2019-03-26 04:29:00 +01:00
committed by Douman
parent 1779f963d9
commit 53fc2221ef
44 changed files with 139 additions and 143 deletions

View File

@ -14,4 +14,4 @@ env_logger = "0.5"
openssl = { version="0.10" }
actix-rt = "0.2"
actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0", features=["ssl"] }
actix-web = { git="https://github.com/actix/actix-web.git", features=["ssl"] }

View File

@ -27,7 +27,7 @@ fn main() -> io::Result<()> {
HttpServer::new(|| {
App::new()
// enable logger
.middleware(middleware::Logger::default())
.wrap(middleware::Logger::default())
// register simple handler, handle all methods
.service(web::resource("/index.html").to(index))
// with path parameters