use axum::extract::{Path, State}; use export::data::{AppResponseData, NoData}; use jwt::extractor::AuthUser; use uuid::Uuid; use crate::error::IssueResult; use crate::features::IssueService; #[utoipa::path( delete, path = "/issues/{channel_id}/{issue_id}/comments/{comment_id}", tag = "issues", responses((status = 204, description = "Delete comment")), security(("bearer_auth" = [])) )] pub(crate) async fn handler( State(svc): State, AuthUser { claims }: AuthUser, Path((channel_id, issue_id, comment_id)): Path<(Uuid, Uuid, Uuid)>, ) -> IssueResult> { svc.delete_comment(claims.sub, channel_id, issue_id, comment_id) .await?; Ok(AppResponseData::::empty()) }