added exit message

This commit is contained in:
WanderingPenwing 2024-09-02 19:08:54 +02:00
parent 158646b6fc
commit ff071260e0

View file

@ -136,8 +136,8 @@ async fn wake(query: web::Query<WakeQuery>) -> impl Responder {
#[actix_web::main] #[actix_web::main]
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
println!("main started"); println!("yuya started");
HttpServer::new(|| { let result = HttpServer::new(|| {
App::new() App::new()
.route("/", web::get().to(summary)) // Route for root .route("/", web::get().to(summary)) // Route for root
.route("/tools", web::get().to(tools)) // Route for tools .route("/tools", web::get().to(tools)) // Route for tools
@ -148,7 +148,9 @@ async fn main() -> std::io::Result<()> {
}) })
.bind("127.0.0.1:8080")? .bind("127.0.0.1:8080")?
.run() .run()
.await .await;
println!("yuya stopped");
result
} }