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,