. * */ namespace Friendica\Module\Api\Mastodon; use Friendica\App\Router; use Friendica\Module\BaseApi; /** * Dummy class for all currently unimplemented endpoints */ class Unimplemented extends BaseApi { /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function delete() { $this->response->unsupported(Router::DELETE); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function patch() { $this->response->unsupported(Router::PATCH); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function post(array $request = [], array $post = []) { $this->response->unsupported(Router::POST); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public function put() { $this->response->unsupported(Router::PUT); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function rawContent(array $request = []) { $this->response->unsupported(Router::GET); } }