This commit is contained in:
2026-01-28 11:09:24 +01:00
commit 439e93ce95
5 changed files with 1661 additions and 0 deletions

14
src/main.rs Normal file
View File

@@ -0,0 +1,14 @@
use actix_web::{web, App, HttpRequest, HttpServer, Responder};
async fn index() -> impl Responder { "Connection successful" }
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.service(web::resource("/").to(index))
})
.bind("127.0.0.1:8080")?
.run()
.await
}