From 3d8aca843e44dff435c8e4cfa0662e2a6b3e0a31 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 16 Jul 2024 00:00:41 +0200 Subject: [PATCH] fix: multiple path parameters come as tuples!! --- upub/routes/src/activitypub/application.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/upub/routes/src/activitypub/application.rs b/upub/routes/src/activitypub/application.rs index 8ee11b3..85cd110 100644 --- a/upub/routes/src/activitypub/application.rs +++ b/upub/routes/src/activitypub/application.rs @@ -73,8 +73,7 @@ pub async fn proxy_form( pub async fn proxy_cloak( State(ctx): State, AuthIdentity(auth): AuthIdentity, - Path(hmac): Path, - Path(uri): Path, + Path((hmac, uri)): Path<(String, String)>, ) -> crate::ApiResult { let uri = ctx.uncloak(&hmac, &uri) .ok_or_else(ApiError::unauthorized)?;