From 55da8fcbda43aeffb78b1e99bbc631c20b25eb2d Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Wed, 7 May 2014 13:39:15 +0200 Subject: [PATCH] Add PATCH to comment as valid method. In frameworks like Rails the PATCH method is preferred over PUT. More on this: http://weblog.rubyonrails.org/2012/2/25/edge-rails-patch-is-the-new-primary-http-method-for-updates/ --- AltoRouter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AltoRouter.php b/AltoRouter.php index 67e76ab..23bdcf4 100644 --- a/AltoRouter.php +++ b/AltoRouter.php @@ -67,7 +67,7 @@ class AltoRouter { /** * Map a route to a target * - * @param string $method One of 4 HTTP Methods, or a pipe-separated list of multiple HTTP Methods (GET|POST|PUT|DELETE) + * @param string $method One of 5 HTTP Methods, or a pipe-separated list of multiple HTTP Methods (GET|POST|PATCH|PUT|DELETE) * @param string $route The route regex, custom regex must start with an @. You can use multiple pre-set regex filters, like [i:id] * @param mixed $target The target where this route should point to. Can be anything. * @param string $name Optional name of this route. Supply if you want to reverse route this url in your application.