fix: multiple path parameters come as tuples!!
This commit is contained in:
parent
5a5c47ecbc
commit
3d8aca843e
1 changed files with 1 additions and 2 deletions
|
@ -73,8 +73,7 @@ pub async fn proxy_form(
|
||||||
pub async fn proxy_cloak(
|
pub async fn proxy_cloak(
|
||||||
State(ctx): State<Context>,
|
State(ctx): State<Context>,
|
||||||
AuthIdentity(auth): AuthIdentity,
|
AuthIdentity(auth): AuthIdentity,
|
||||||
Path(hmac): Path<String>,
|
Path((hmac, uri)): Path<(String, String)>,
|
||||||
Path(uri): Path<String>,
|
|
||||||
) -> crate::ApiResult<impl IntoResponse> {
|
) -> crate::ApiResult<impl IntoResponse> {
|
||||||
let uri = ctx.uncloak(&hmac, &uri)
|
let uri = ctx.uncloak(&hmac, &uri)
|
||||||
.ok_or_else(ApiError::unauthorized)?;
|
.ok_or_else(ApiError::unauthorized)?;
|
||||||
|
|
Loading…
Reference in a new issue