diff --git a/src/Routing/ResourceRegistrar.php b/src/Routing/ResourceRegistrar.php index 3cac22d1..be909bbd 100644 --- a/src/Routing/ResourceRegistrar.php +++ b/src/Routing/ResourceRegistrar.php @@ -116,8 +116,8 @@ private function registerHasMany($objectUrl, $controller, array $relations) $this->router->get($related, sprintf('%s@read%s', $controller, $name)); $this->router->get($identifier, sprintf('%s@read%sRelationship', $controller, $name)); - $this->router->patch($identifier, sprintf('%s@read%sRelationship', $controller, $name)); - $this->router->delete($identifier, sprintf('%s@read%sRelationship', $controller, $name)); + $this->router->patch($identifier, sprintf('%s@update%sRelationship', $controller, $name)); + $this->router->delete($identifier, sprintf('%s@delete%sRelationship', $controller, $name)); } return $this;