Update example to latest betas
This commit is contained in:
parent
5849e8ae5e
commit
35e7220b1d
|
@ -34,9 +34,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||
pretty_env_logger::init();
|
||||
HttpServer::new(|| {
|
||||
App::new()
|
||||
.data(MyState {
|
||||
.app_data(Data::new(MyState {
|
||||
domain: "localhost:8000".to_owned(),
|
||||
})
|
||||
}))
|
||||
.wrap(Logger::default())
|
||||
.service(actix_webfinger::resource::<MyResolver>())
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue