port 80
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user