routes
This commit is contained in:
parent
e6362f69a7
commit
6449f9c1f1
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ use serde_json::json;
|
|||
use super::take_out;
|
||||
|
||||
/// 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 {
|
||||
let repository = Repository::new(repo).unwrap();
|
||||
let pkg = repository.get_pkg_by_name(pkg_name).unwrap();
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::routes::ui::arch_card;
|
|||
use pacco::config::Config;
|
||||
|
||||
/// Repository API Endpoint
|
||||
#[get("/<repo>/<arch>/json")]
|
||||
#[get("/json/<repo>/<arch>")]
|
||||
pub async fn repo_arch_json(
|
||||
repo: &str,
|
||||
ctx: RequestContext,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue