diff --git a/framework/core/src/Events/RegisterApiRoutes.php b/framework/core/src/Events/RegisterApiRoutes.php index 943a9437a..206ce43c4 100644 --- a/framework/core/src/Events/RegisterApiRoutes.php +++ b/framework/core/src/Events/RegisterApiRoutes.php @@ -24,11 +24,21 @@ class RegisterApiRoutes $this->route('get', $url, $name, $action); } + public function post($url, $name, $action) + { + $this->route('post', $url, $name, $action); + } + public function patch($url, $name, $action) { $this->route('patch', $url, $name, $action); } + public function delete($url, $name, $action) + { + $this->route('delete', $url, $name, $action); + } + protected function route($method, $url, $name, $action) { $this->routes->$method($url, $name, $this->action($action));