Skip to content

Commit

Permalink
Merge pull request #505 from zendesk/asee/fix-delete-webhook
Browse files Browse the repository at this point in the history
feat: fix delete webhook
  • Loading branch information
7ail authored Jul 11, 2023
2 parents d1da1a7 + a6780dc commit d327136
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Zendesk/API/Resources/Core/Webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@

use Zendesk\API\Resources\ResourceAbstract;
use Zendesk\API\Traits\Resource\Defaults;
use Zendesk\API\Traits\Resource\FindAll;

/**
* The Tags class exposes methods as detailed on https://developer.zendesk.com/api-reference/event-connectors/webhooks/webhooks/
*/
class Webhooks extends ResourceAbstract
{
use Defaults;
use FindAll {
use Defaults {
findAll as traitFindAll;
}

Expand All @@ -25,8 +23,8 @@ protected function setUpRoutes()

$this->setRoutes([
'create' => "{$this->resourceName}",
'update' => "{$this->resourceName}/{id}",
'delete' => "{$this->resourceName}",
'update' => "{$this->resourceName}/{id}.json",
'delete' => "{$this->resourceName}/{id}.json",
'findAll' => "{$this->resourceName}",
]);
}
Expand Down

0 comments on commit d327136

Please sign in to comment.