[FEATURE] Added support for patch.

- Put now also allow patch request types.
This commit is contained in:
Simon Sessingø
2015-11-01 09:21:47 +01:00
parent f215eaa9cf
commit be277f276f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -10,13 +10,15 @@ abstract class RouterEntry {
const REQUEST_TYPE_POST = 'post';
const REQUEST_TYPE_GET = 'get';
const REQUEST_TYPE_PUT = 'put';
const REQUEST_TYPE_PATCH = 'patch';
const REQUEST_TYPE_DELETE = 'delete';
public static $allowedRequestTypes = array(
self::REQUEST_TYPE_DELETE,
self::REQUEST_TYPE_GET,
self::REQUEST_TYPE_POST,
self::REQUEST_TYPE_PUT
self::REQUEST_TYPE_PUT,
self::REQUEST_TYPE_PATCH
);
protected $settings;