Refactor post_manually function to use GET instead of POST in main.rs

This commit is contained in:
aprilthepink 2024-05-04 17:59:26 +02:00
parent 8ac9f7bd4b
commit 9529ac26d1

View file

@ -60,7 +60,7 @@ async fn index(_: web::Data<State>) -> actix_web::Result<HttpResponse, Error> {
Ok(HttpResponse::Ok().json(Response { health: true })) Ok(HttpResponse::Ok().json(Response { health: true }))
} }
#[post("/test/postmanually/{user}/{post}")] #[get("/test/postmanually/{user}/{post}")]
async fn post_manually( async fn post_manually(
path: web::Path<(String, String)>, path: web::Path<(String, String)>,
state: web::Data<State>, state: web::Data<State>,