mirror of
https://github.com/pfzetto/axum-oidc.git
synced 2024-12-23 17:19:32 +01:00
feat: adapt example in README.md to compile with axum-0.7.*
This commit is contained in:
parent
e9ed927fd9
commit
7746e6f682
1 changed files with 2 additions and 4 deletions
|
@ -52,10 +52,8 @@ async fn main() {
|
|||
.layer(oidc_auth_service)
|
||||
.layer(session_service);
|
||||
|
||||
axum::Server::bind(&"[::]:8080".parse().unwrap())
|
||||
.serve(app.into_make_service())
|
||||
.await
|
||||
.unwrap();
|
||||
let listener = TcpListener::bind("[::]:8080").await.unwrap();
|
||||
axum::serve(listener, app.into_make_service()).await.unwrap();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue