mirror of
https://github.com/actix/actix-website
synced 2025-06-29 08:14:58 +02:00
v3 (#188)
This commit is contained in:
@ -28,12 +28,12 @@ async fn index() -> impl Responder {
|
||||
}
|
||||
// </responder-trait>
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
use actix_web::{web, App, HttpServer};
|
||||
|
||||
HttpServer::new(|| App::new().route("/", web::get().to(index)))
|
||||
.bind("127.0.0.1:8088")?
|
||||
.bind("127.0.0.1:8080")?
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
Reference in New Issue
Block a user