darkicewolf50 ad92fedb9c
Some checks failed
Test Gitea Actions / first (push) Successful in 14s
Test Gitea Actions / check-code (push) Failing after 12s
Test Gitea Actions / test (push) Has been skipped
Test Gitea Actions / documentation-check (push) Has been skipped
did some inital testing with actix
2025-02-27 16:30:59 -07:00

17 lines
416 B
Rust

use actix_web::{web, App, HttpServer};
use actix_web_learning::{hello, echo, resend, manual_hello};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.service(hello)
.service(echo)
.service(resend)
.route("/hey", web::get().to(manual_hello))
})
.bind(("darkicen950.local", 8080))?
.run()
.await
}