This commit is contained in:
2025-09-05 10:07:42 +08:00
parent b524d00f7e
commit 7570bfd50b

View File

@@ -46,7 +46,7 @@ async fn create_user(user: web::Json<UserRequest>) -> impl Responder {
#[actix_web::main]
async fn main() -> std::io::Result<()> {
println!("Starting server at http://localhost:8080");
println!("Starting server at http://localhost:80");
HttpServer::new(|| {
App::new()
@@ -55,7 +55,7 @@ async fn main() -> std::io::Result<()> {
.service(greet)
.service(create_user)
})
.bind("0.0.0.0:8080")?
.bind("0.0.0.0:80")?
.run()
.await
}