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