Rename /signed_update API method to /send_activity

This commit is contained in:
silverpill 2022-11-26 21:13:37 +00:00
parent a6032386da
commit 7511832fa0
2 changed files with 4 additions and 3 deletions

View file

@ -175,6 +175,7 @@ paths:
description: Canonical representation of activity. description: Canonical representation of activity.
type: string type: string
example: '{"type":"Update"}' example: '{"type":"Update"}'
/api/v1/accounts/send_activity:
post: post:
summary: Send signed activity (experimental). summary: Send signed activity (experimental).
requestBody: requestBody:

View file

@ -254,8 +254,8 @@ async fn get_unsigned_update(
Ok(HttpResponse::Ok().json(data)) Ok(HttpResponse::Ok().json(data))
} }
#[post("/signed_update")] #[post("/send_activity")]
async fn send_signed_update( async fn send_signed_activity(
auth: BearerAuth, auth: BearerAuth,
config: web::Data<Config>, config: web::Data<Config>,
db_pool: web::Data<Pool>, db_pool: web::Data<Pool>,
@ -707,7 +707,7 @@ pub fn account_api_scope() -> Scope {
.service(verify_credentials) .service(verify_credentials)
.service(update_credentials) .service(update_credentials)
.service(get_unsigned_update) .service(get_unsigned_update)
.service(send_signed_update) .service(send_signed_activity)
.service(get_identity_claim) .service(get_identity_claim)
.service(create_identity_proof) .service(create_identity_proof)
.service(get_relationships_view) .service(get_relationships_view)