mirror of
https://github.com/friendica/friendica
synced 2025-04-30 23:04:23 +02:00
New function to handle "get" requests
This commit is contained in:
parent
c2eae676bf
commit
8e76d13a96
9 changed files with 25 additions and 9 deletions
|
@ -164,6 +164,19 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Module GET method to process submitted data
|
||||
*
|
||||
* Extend this method if the module is supposed to process GET requests.
|
||||
* Doesn't display any content
|
||||
*
|
||||
* @param string[] $request The $_REQUEST content
|
||||
* @return void
|
||||
*/
|
||||
protected function get(array $request = [])
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
@ -221,7 +234,10 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
case Router::PUT:
|
||||
$this->put($request);
|
||||
return $this->response->generate();
|
||||
}
|
||||
case Router::GET:
|
||||
$this->get($request);
|
||||
break;
|
||||
}
|
||||
|
||||
$timestamp = microtime(true);
|
||||
// "rawContent" is especially meant for technical endpoints.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue