From 6449f9c1f16e034f0f3717210b0c73ad5c4e3b10 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 28 Jun 2025 03:55:38 +0200 Subject: [PATCH] routes --- src/routes/ui/pkg.rs | 2 +- src/routes/ui/repo.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/ui/pkg.rs b/src/routes/ui/pkg.rs index 9b200f3..353ab85 100644 --- a/src/routes/ui/pkg.rs +++ b/src/routes/ui/pkg.rs @@ -14,7 +14,7 @@ use serde_json::json; use super::take_out; /// Package API Endpoint -#[get("///json")] +#[get("/json/pkg//")] pub async fn pkg_json(repo: &str, pkg_name: &str) -> serde_json::Value { let repository = Repository::new(repo).unwrap(); let pkg = repository.get_pkg_by_name(pkg_name).unwrap(); diff --git a/src/routes/ui/repo.rs b/src/routes/ui/repo.rs index d73190d..d3b0925 100644 --- a/src/routes/ui/repo.rs +++ b/src/routes/ui/repo.rs @@ -12,7 +12,7 @@ use crate::routes::ui::arch_card; use pacco::config::Config; /// Repository API Endpoint -#[get("///json")] +#[get("/json//")] pub async fn repo_arch_json( repo: &str, ctx: RequestContext,