aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-12-15 08:40:26 +0000
committerAlex <alex@adnab.me>2022-12-15 08:40:26 +0000
commit1af4a5ed569e42f77dd4ecc9364a27f7ed43df63 (patch)
tree97b73088670bb4e5c5acf55c3cce5ecd3d203483 /src/api/admin
parentf7c65e830e66c9887d989a8281d8fae7f76f9c8c (diff)
parenta0abf417626be8d120f660c582195747d131b88b (diff)
downloadgarage-1af4a5ed569e42f77dd4ecc9364a27f7ed43df63.tar.gz
garage-1af4a5ed569e42f77dd4ecc9364a27f7ed43df63.zip
Merge pull request 'Fix router keyword handling (fix #442)' (#446) from router-keywords-fix into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/446
Diffstat (limited to 'src/api/admin')
-rw-r--r--src/api/admin/router.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/api/admin/router.rs b/src/api/admin/router.rs
index 3fa07b3c..62e6abc3 100644
--- a/src/api/admin/router.rs
+++ b/src/api/admin/router.rs
@@ -143,10 +143,13 @@ impl Endpoint {
}
generateQueryParameters! {
- "format" => format,
- "id" => id,
- "search" => search,
- "globalAlias" => global_alias,
- "alias" => alias,
- "accessKeyId" => access_key_id
+ keywords: [],
+ fields: [
+ "format" => format,
+ "id" => id,
+ "search" => search,
+ "globalAlias" => global_alias,
+ "alias" => alias,
+ "accessKeyId" => access_key_id
+ ]
}