🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2021-09-28 21:11:11.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2021-09-28 21:11:11.0 +01:00:00
commit
828749441fd555c8de58fe1a41252236fcd24731 [patch]
tree
777dea7195e719e721dbf13c6b0394ed0e246b96
parent
ec9dcb3bd5b4f855450f7953347f064961e47997
download
828749441fd555c8de58fe1a41252236fcd24731.tar.gz

Fix swapped name/org in Cargo API endpoints



Diff

 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,