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