<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module\Api\Mastodon;
use Friendica\App\Router;
-use Friendica\DI;
use Friendica\Module\BaseApi;
/**
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public function delete()
+ protected function delete(array $request = [])
{
- DI::apiResponse()->unsupported(Router::DELETE);
+ $this->response->unsupported(Router::DELETE, $request);
}
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public function patch()
+ protected function patch(array $request = [])
{
- DI::apiResponse()->unsupported(Router::PATCH);
+ $this->response->unsupported(Router::PATCH, $request);
}
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public function post()
+ protected function post(array $request = [])
{
- DI::apiResponse()->unsupported(Router::POST);
+ $this->response->unsupported(Router::POST, $request);
}
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public function put()
+ public function put(array $request = [])
{
- DI::apiResponse()->unsupported(Router::PUT);
+ $this->response->unsupported(Router::PUT, $request);
}
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public function rawContent()
+ protected function rawContent(array $request = [])
{
- DI::apiResponse()->unsupported(Router::GET);
+ $this->response->unsupported(Router::GET, $request);
}
}