DeleteWebhook delegates to service.DeleteWebhook. Requires super-admin auth.
(ctx context.Context, req *authorizerv1.DeleteWebhookRequest)
| 210 | |
| 211 | // DeleteWebhook delegates to service.DeleteWebhook. Requires super-admin auth. |
| 212 | func (h *AdminHandler) DeleteWebhook(ctx context.Context, req *authorizerv1.DeleteWebhookRequest) (*authorizerv1.DeleteWebhookResponse, error) { |
| 213 | res, _, err := h.Service.DeleteWebhook(ctx, transport.MetaFromGRPC(ctx), &model.WebhookRequest{ |
| 214 | ID: req.GetId(), |
| 215 | }) |
| 216 | if err != nil { |
| 217 | return nil, err |
| 218 | } |
| 219 | return &authorizerv1.DeleteWebhookResponse{Message: res.Message}, nil |
| 220 | } |
| 221 | |
| 222 | // GetWebhook delegates to service.Webhook and projects the result. Requires |
| 223 | // super-admin auth. |
nothing calls this directly
no test coverage detected