Commit 318bb360 authored by Jesse O'Brien's avatar Jesse O'Brien

Adding PATCH to the route register.

Self-explanatory.
parent 88cde2c9
...@@ -330,6 +330,18 @@ class Route { ...@@ -330,6 +330,18 @@ class Route {
Router::register('PUT', $route, $action); Router::register('PUT', $route, $action);
} }
/**
* Register a PATCH route with the router.
*
* @param string|array $route
* @param mixed $action
* @return void
*/
public static function patch($route, $action)
{
Router::register('PATCH', $route, $action);
}
/** /**
* Register a DELETE route with the router. * Register a DELETE route with the router.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment