mirror of
https://github.com/actix/examples
synced 2025-06-27 01:27:43 +02:00
update dependencies
This commit is contained in:
@ -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