. * */ 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(array $request = []) { $this->response->unsupported(Router::DELETE, $request); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function patch(array $request = []) { $this->response->unsupported(Router::PATCH, $request); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function post(array $request = []) { $this->response->unsupported(Router::POST, $request); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public function put(array $request = []) { $this->response->unsupported(Router::PUT, $request); } /** * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ protected function rawContent(array $request = []) { $this->response->unsupported(Router::GET, $request); } }