10 lines
261 B
Rust
10 lines
261 B
Rust
use actix_web::{App, HttpResponse, HttpServer, web};
|
|
|
|
#[actix_web::main]
|
|
async fn main() -> std::io::Result<()> {
|
|
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok)))
|
|
.bind(("127.0.0.1", 8080))?
|
|
.run()
|
|
.await
|
|
}
|