lph-11/odin-http/comparisons/empty-ok-all/rust/src/main.rs
2025-03-13 18:14:21 +13:00

12 lines
268 B
Rust

use actix_web::{web, App, HttpServer};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.service(web::resource("/").to(|| async { "" }))
})
.bind(("127.0.0.1", 8080))?
.run()
.await
}