This commit is contained in:
@@ -138,7 +138,7 @@ async fn main() {
|
||||
.route("/posts/{slug}", get(|slug| get_post(slug, posts)))
|
||||
.nest_service("/static", ServeDir::new("static"));
|
||||
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
println!("Running on http://127.0.0.1:3000");
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:42069").await.unwrap();
|
||||
println!("Running on http://127.0.0.1:42069");
|
||||
axum::serve(listener, site).await.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user