Skip to content

Commit

Permalink
Merge pull request laravel#1586 from Pasvaz/patch-1
Browse files Browse the repository at this point in the history
Implemented OPTIONS verb
  • Loading branch information
taylorotwell committed Jan 12, 2013
2 parents 63bf89e + 9dd0a21 commit 2529904
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions laravel/routing/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Router {
'DELETE' => array(),
'PATCH' => array(),
'HEAD' => array(),
'OPTIONS'=> array(),
);

/**
Expand All @@ -47,6 +48,7 @@ class Router {
'DELETE' => array(),
'PATCH' => array(),
'HEAD' => array(),
'OPTIONS'=> array(),
);

/**
Expand Down Expand Up @@ -97,7 +99,7 @@ class Router {
*
* @var array
*/
public static $methods = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD');
public static $methods = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS');

/**
* Register a HTTPS route with the router.
Expand Down Expand Up @@ -594,4 +596,4 @@ protected static function repeat($pattern, $times)
return implode('/', array_fill(0, $times, $pattern));
}

}
}

0 comments on commit 2529904

Please sign in to comment.