mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
update dependencies
This commit is contained in:
@ -5,7 +5,7 @@ authors = ["Alexandru Tiniuc <tiniuc.alexandru@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "2.0.0-alpha.6"
|
||||
actix-web = "2.0.0-rc"
|
||||
actix-rt = "1.0.0"
|
||||
handlebars = "2.0.0-beta.2"
|
||||
handlebars = "2.0.0"
|
||||
serde_json = "1.0"
|
@ -49,7 +49,7 @@ async fn main() -> io::Result<()> {
|
||||
|
||||
HttpServer::new(move || {
|
||||
App::new()
|
||||
.register_data(handlebars_ref.clone())
|
||||
.app_data(handlebars_ref.clone())
|
||||
.service(index)
|
||||
.service(user)
|
||||
})
|
||||
|
Reference in New Issue
Block a user