Added PATCH route method.
This commit is contained in:
@@ -69,6 +69,15 @@ trait route_t
|
||||
$this->registerRoute($route, 'OPTIONS', $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* PATCH route
|
||||
* @param string $route Example: /home, /home/{id}
|
||||
*/
|
||||
public function patch(string $route, callable $callback): void
|
||||
{
|
||||
$this->registerRoute($route, 'PATCH', $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Match route
|
||||
* @param string $route Example: /home, /home/{id}
|
||||
|
||||
Reference in New Issue
Block a user