use axum::Json; use axum::extract::{Path, Query, State}; use jwt::extractor::AuthUser; use uuid::Uuid; use crate::error::RepoResult; use crate::features::RepoService; use crate::features::extras::{ForksQuery, ForksResponse}; #[utoipa::path( get, path = "/repo/{channel_id}/{repo_id}/forks", tag = "repo", params(ForksQuery), responses((status = 200, description = "List forks", body = ForksResponse)), security(("bearer_auth" = [])) )] pub(crate) async fn list_handler( State(svc): State, AuthUser { claims }: AuthUser, Path((_, repo_id)): Path<(Uuid, Uuid)>, Query(q): Query, ) -> RepoResult> { let out = svc.list_forks(claims.sub, repo_id, q.page, q.limit).await?; Ok(Json(out)) }