From 828749441fd555c8de58fe1a41252236fcd24731 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Tue, 28 Sep 2021 21:11:11 +0100 Subject: [PATCH] Fix swapped name/org in Cargo API endpoints --- chartered-web/src/endpoints/cargo_api/download.rs | 2 +- chartered-web/src/endpoints/cargo_api/yank.rs | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chartered-web/src/endpoints/cargo_api/download.rs b/chartered-web/src/endpoints/cargo_api/download.rs index da4bb65..d9138e1 100644 --- a/chartered-web/src/endpoints/cargo_api/download.rs +++ a/chartered-web/src/endpoints/cargo_api/download.rs @@ -29,7 +29,7 @@ define_error_response!(Error); pub async fn handle( - extract::Path((_session_key, name, organisation, version)): extract::Path<( + extract::Path((_session_key, organisation, name, version)): extract::Path<( String, String, String, diff --git a/chartered-web/src/endpoints/cargo_api/yank.rs b/chartered-web/src/endpoints/cargo_api/yank.rs index 58175b8..869dd08 100644 --- a/chartered-web/src/endpoints/cargo_api/yank.rs +++ a/chartered-web/src/endpoints/cargo_api/yank.rs @@ -26,7 +26,7 @@ } pub async fn handle_yank( - extract::Path((_session_key, name, organisation, version)): extract::Path<( + extract::Path((_session_key, organisation, name, version)): extract::Path<( String, String, String, @@ -46,7 +46,7 @@ } pub async fn handle_unyank( - extract::Path((_session_key, name, organisation, version)): extract::Path<( + extract::Path((_session_key, organisation, name, version)): extract::Path<( String, String, String, -- rgit 0.1.3