From 531e27ab2c67e0996b153f68a16fefde38e4f2cb Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sat, 27 Jul 2024 02:46:03 +0300 Subject: [PATCH] chore: Use `Signature` as a openAPI parameter Signed-off-by: Awiteb --- crates/oxidetalis/src/routes/user.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxidetalis/src/routes/user.rs b/crates/oxidetalis/src/routes/user.rs index cca02f7..252aa76 100644 --- a/crates/oxidetalis/src/routes/user.rs +++ b/crates/oxidetalis/src/routes/user.rs @@ -45,7 +45,7 @@ use crate::{ (status_code = 500, description = "Internal server error", content_type = "application/json", body = MessageSchema), ), parameters( - ("X-OTMP-SIGNATURE" = Signature, Header, description = "Signature of the request"), + Signature, ("X-OTMP-PUBLIC" = PublicKey, Header, description = "Public key of the sender"), ), )] @@ -80,7 +80,7 @@ pub async fn register(req: &Request, depot: &mut Depot) -> ApiResult