1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02:00

update dependencies

This commit is contained in:
Nikolay Kim
2019-12-20 22:30:26 +06:00
parent 7b35cd32c7
commit d914b1c694
42 changed files with 70 additions and 80 deletions

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
env_logger = "0.6"
futures = "0.3.1"
tokio = "0.2"

View File

@ -17,7 +17,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.register_data(data.clone())
.app_data(data.clone())
.route("/", web::get().to(index))
.route("/events", web::get().to(new_client))
.route("/broadcast/{msg}", web::get().to(broadcast))