fix: multiple path parameters come as tuples!!

This commit is contained in:
əlemi 2024-07-16 00:00:41 +02:00
parent 5a5c47ecbc
commit 3d8aca843e
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -73,8 +73,7 @@ pub async fn proxy_form(
pub async fn proxy_cloak(
State(ctx): State<Context>,
AuthIdentity(auth): AuthIdentity,
Path(hmac): Path<String>,
Path(uri): Path<String>,
Path((hmac, uri)): Path<(String, String)>,
) -> crate::ApiResult<impl IntoResponse> {
let uri = ctx.uncloak(&hmac, &uri)
.ok_or_else(ApiError::unauthorized)?;