diff --git a/src/PhalconRest/Api/ApiCollection.php b/src/PhalconRest/Api/ApiCollection.php index 4d16642..d069d3f 100644 --- a/src/PhalconRest/Api/ApiCollection.php +++ b/src/PhalconRest/Api/ApiCollection.php @@ -146,6 +146,16 @@ public function endpoint(ApiEndpoint $endpoint) $this->delete($endpoint->getPath(), $endpoint->getHandlerMethod(), $this->createRouteName($endpoint)); break; + + case HttpMethods::PATCH: + + $this->patch($endpoint->getPath(), $endpoint->getHandlerMethod(),$this->createRouteName($endpoint)); + break; + + case HttpMethods::OPTIONS: + + $this->options($endpoint->getPath(), $endpoint->getHandlerMethod(),$this->createRouteName($endpoint)); + break; } return $this;