routes
Some checks failed
ci/woodpecker/push/pkgbuild/2 Pipeline is pending
ci/woodpecker/push/pkgbuild/1 Pipeline failed
ci/woodpecker/push/container Pipeline failed

This commit is contained in:
JMARyA 2025-06-28 03:55:38 +02:00
parent e6362f69a7
commit 6449f9c1f1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ use serde_json::json;
use super::take_out; use super::take_out;
/// Package API Endpoint /// Package API Endpoint
#[get("/<repo>/<pkg_name>/json")] #[get("/json/pkg/<repo>/<pkg_name>")]
pub async fn pkg_json(repo: &str, pkg_name: &str) -> serde_json::Value { pub async fn pkg_json(repo: &str, pkg_name: &str) -> serde_json::Value {
let repository = Repository::new(repo).unwrap(); let repository = Repository::new(repo).unwrap();
let pkg = repository.get_pkg_by_name(pkg_name).unwrap(); let pkg = repository.get_pkg_by_name(pkg_name).unwrap();

View file

@ -12,7 +12,7 @@ use crate::routes::ui::arch_card;
use pacco::config::Config; use pacco::config::Config;
/// Repository API Endpoint /// Repository API Endpoint
#[get("/<repo>/<arch>/json")] #[get("/json/<repo>/<arch>")]
pub async fn repo_arch_json( pub async fn repo_arch_json(
repo: &str, repo: &str,
ctx: RequestContext, ctx: RequestContext,