Changes to UrlParamsMap

This commit is contained in:
David Pedersen
2021-05-30 16:37:27 +02:00
parent 763d4e8d21
commit 03fb15e7a7
3 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ struct State {
async fn get(
_req: Request<Body>,
params: extract::UrlParams,
params: extract::UrlParamsMap,
state: extract::Extension<SharedState>,
) -> Result<Bytes, Error> {
let state = state.into_inner();
@@ -69,7 +69,7 @@ async fn get(
async fn set(
_req: Request<Body>,
params: extract::UrlParams,
params: extract::UrlParamsMap,
value: extract::BytesMaxLength<{ 1024 * 5_000 }>, // ~5mb
state: extract::Extension<SharedState>,
) -> Result<response::Empty, Error> {