mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
Refactor post_manually function to use GET instead of POST in main.rs
This commit is contained in:
parent
8ac9f7bd4b
commit
9529ac26d1
|
|
@ -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>,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue