mirror of
https://github.com/friendica/friendica
synced 2025-03-23 00:59:36 +00:00
16 lines
378 B
PHP
16 lines
378 B
PHP
<?php
|
|
|
|
namespace Friendica\Module\Special;
|
|
|
|
use Friendica\App\Router;
|
|
use Friendica\BaseModule;
|
|
|
|
class Options extends BaseModule
|
|
{
|
|
protected function options(array $request = [])
|
|
{
|
|
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
|
|
$this->response->setHeader(implode(',', Router::ALLOWED_METHODS), 'Allow');
|
|
$this->response->setStatus(204);
|
|
}
|
|
}
|