mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
update dependencies
This commit is contained in:
@ -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"
|
@ -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))
|
||||
|
Reference in New Issue
Block a user