1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 15:39:02 +02:00

update extractors

This commit is contained in:
Nikolay Kim
2020-01-02 18:33:33 +06:00
parent 4046b0b697
commit b8e2a2310c
8 changed files with 42 additions and 58 deletions

View File

@ -28,7 +28,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.data(data.clone())
.app_data(data.clone())
.route("/", web::to(show_count))
.route("/add", web::to(add_one))
})

View File

@ -29,7 +29,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.data(data.clone())
.app_data(data.clone())
.route("/", web::to(show_count))
.route("/add", web::to(add_one))
})