mirror of
https://github.com/friendica/friendica
synced 2025-04-21 13:50:11 +00:00
Add all required HTTP methods
This commit is contained in:
parent
8ae2e3caf8
commit
6236870aa4
5 changed files with 137 additions and 10 deletions
|
@ -72,6 +72,26 @@ abstract class BaseModule
|
|||
return $o;
|
||||
}
|
||||
|
||||
/**
|
||||
* Module DELETE method to process submitted data
|
||||
*
|
||||
* Extend this method if the module is supposed to process DELETE requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function delete(array $parameters = [])
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Module PATCH method to process submitted data
|
||||
*
|
||||
* Extend this method if the module is supposed to process PATCH requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function patch(array $parameters = [])
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Module POST method to process submitted data
|
||||
*
|
||||
|
@ -92,6 +112,16 @@ abstract class BaseModule
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Module PUT method to process submitted data
|
||||
*
|
||||
* Extend this method if the module is supposed to process PUT requests.
|
||||
* Doesn't display any content
|
||||
*/
|
||||
public static function put(array $parameters = [])
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Functions used to protect against Cross-Site Request Forgery
|
||||
* The security token has to base on at least one value that an attacker can't know - here it's the session ID and the private key.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue