use axum::extract::{Path, State}; use export::data::AppResponseData; use jwt::extractor::AuthUser; use uuid::Uuid; use crate::error::RepoResult; use crate::features::RepoService; use crate::features::git_ref::GitRef; #[utoipa::path( get, path = "/repo/{channel_id}/{repo_id}/git/refs", tag = "repo", responses((status = 200, description = "List git refs", body = AppResponseData>)), security(("bearer_auth" = [])) )] pub(crate) async fn handler( State(svc): State, AuthUser { claims }: AuthUser, Path((_, repo_id)): Path<(Uuid, Uuid)>, ) -> RepoResult>> { let refs = svc.list_git_refs(claims.sub, repo_id).await?; Ok(AppResponseData::ok(refs)) }