RestService

This commit is contained in:
2023-06-12 15:33:44 +02:00
parent ddd039fead
commit 53a5c8a976
12 changed files with 239 additions and 52 deletions

View File

@@ -103,7 +103,7 @@ async fn main() {
)
.layer(CorsLayer::permissive());
let addr = SocketAddr::from(([127, 0, 0, 1], 4000));
let addr = SocketAddr::from(([0, 0, 0, 0], 4000));
tracing::debug!("listening on {}", addr);
let server = axum::Server::bind(&addr)