13 lines
268 B
Rust
13 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
|
||
|
}
|