From 091df60af4d972bf4687a5a68d2184016dca4071 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 2 Oct 2024 18:14:54 +0300 Subject: [PATCH] test-ok --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a65b23..67a8ec1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ mod handlers; mod s3_utils; mod thumbnail; -use actix_web::{middleware::Logger, web, App, HttpServer}; +use actix_web::{middleware::Logger, web, App, HttpServer, HttpResponse}; use app_state::AppState; use handlers::{proxy_handler, upload_handler}; use tokio::task::spawn_blocking; @@ -28,6 +28,7 @@ async fn main() -> std::io::Result<()> { App::new() .app_data(web::Data::new(app_state.clone())) .wrap(Logger::default()) + .route("/", web::get().to(|| async { HttpResponse::Ok().body("ok") })) .route("/{path:.*}", web::get().to(proxy_handler)) .route("/", web::post().to(upload_handler)) })