(ctx context.Context, in *WebhookIDParam)
| 528 | } |
| 529 | |
| 530 | func (s *Server) handleGetWebhook(ctx context.Context, in *WebhookIDParam) (*webhookOutput, error) { |
| 531 | user, err := s.requireAccountUser(ctx) |
| 532 | if err != nil { |
| 533 | return nil, err |
| 534 | } |
| 535 | wh, err := s.deps.GetWebhook(ctx, in.ID, user.ID) |
| 536 | if err != nil || wh == nil { |
| 537 | return nil, NewError(http.StatusNotFound, "not_found", "webhook not found") |
| 538 | } |
| 539 | return &webhookOutput{Body: webhookView(wh)}, nil |
| 540 | } |
| 541 | |
| 542 | type deleteWebhookOutput struct{} |
| 543 |
nothing calls this directly
no test coverage detected