mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:10:11 +00:00
Support HTTP OPTIONS requests
This commit is contained in:
parent
bb60ed4094
commit
58a513cb30
2 changed files with 17 additions and 5 deletions
|
@ -44,11 +44,12 @@ use Friendica\Network\HTTPException;
|
|||
*/
|
||||
class Router
|
||||
{
|
||||
const DELETE = 'DELETE';
|
||||
const GET = 'GET';
|
||||
const PATCH = 'PATCH';
|
||||
const POST = 'POST';
|
||||
const PUT = 'PUT';
|
||||
const DELETE = 'DELETE';
|
||||
const GET = 'GET';
|
||||
const PATCH = 'PATCH';
|
||||
const POST = 'POST';
|
||||
const PUT = 'PUT';
|
||||
const OPTIONS = 'OPTIONS';
|
||||
|
||||
const ALLOWED_METHODS = [
|
||||
self::DELETE,
|
||||
|
@ -56,6 +57,7 @@ class Router
|
|||
self::PATCH,
|
||||
self::POST,
|
||||
self::PUT,
|
||||
self::OPTIONS
|
||||
];
|
||||
|
||||
/** @var RouteCollector */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue