We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81523bb commit ccf0865Copy full SHA for ccf0865
src/main.rs
@@ -122,6 +122,11 @@ fn verify_hmac(
122
}
123
124
125
+
126
+async fn health_check() -> impl Responder {
127
+ HttpResponse::Ok().finish()
128
+}
129
130
#[actix_web::main]
131
async fn main() -> std::io::Result<()> {
132
std::fs::create_dir_all("uploads").unwrap();
@@ -130,6 +135,7 @@ async fn main() -> std::io::Result<()> {
135
println!("Starting server at: {}", host);
136
HttpServer::new(move || {
137
App::new()
138
+ .route("/", web::get().to(health_check))
133
139
.service(web::resource("/upload").route(web::post().to(upload_file)))
134
140
.service(web::resource("/files/{id}").route(web::get().to(get_file)))
141
})
0 commit comments