1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +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

@ -78,8 +78,8 @@ fn main() -> io::Result<()> {
// Start http server
HttpServer::new(move || {
App::new()
.state(pool.clone())
.middleware(middleware::Logger::default())
.data(pool.clone())
.wrap(middleware::Logger::default())
.service(
web::resource("/asyncio_weather")
.route(web::get().to_async(asyncio_weather)),