From 9529ac26d15e0712559109968bfcf265d63919ba Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Sat, 4 May 2024 17:59:26 +0200 Subject: [PATCH] Refactor post_manually function to use GET instead of POST in main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dad2c2c..2892abb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,7 @@ async fn index(_: web::Data) -> actix_web::Result { Ok(HttpResponse::Ok().json(Response { health: true })) } -#[post("/test/postmanually/{user}/{post}")] +#[get("/test/postmanually/{user}/{post}")] async fn post_manually( path: web::Path<(String, String)>, state: web::Data,