use axum::Json; use axum::extract::{Path, State}; use jwt::extractor::AuthUser; use uuid::Uuid; use crate::error::RepoResult; use crate::features::RepoService; use crate::features::extras::IssueTemplate; #[utoipa::path( get, path = "/repo/{channel_id}/{repo_id}/issue_templates", tag = "repo", responses((status = 200, description = "List issue templates", body = Vec)), security(("bearer_auth" = [])) )] pub(crate) async fn handler( State(svc): State, AuthUser { claims }: AuthUser, Path((_, repo_id)): Path<(Uuid, Uuid)>, ) -> RepoResult>> { let out = svc.list_issue_templates(claims.sub, repo_id).await?; Ok(Json(out)) }