update de l'application pour le dev de la documentation

This commit is contained in:
Emmanuel ROY 2020-12-18 17:44:09 +01:00
commit 6efdffc05c
31 changed files with 329 additions and 253 deletions

View file

@ -3,17 +3,15 @@
namespace MVC\Classe;
class HttpMethod
{
public $method;
protected $data;
public function __construct()
{
$this->method = $_SERVER['REQUEST_METHOD'];
Logger::addLog('http.method',$this->method);
Logger::addLog('http.method', $this->method);
$this->acceptResponse();
}
@ -28,6 +26,7 @@ class HttpMethod
//$this->data['GET'] = ...
//POST DATA except enctype="multipart/form-data"
$this->data = json_decode(file_get_contents("php://input"), true);
// no break
case 'DELETE':
//$this->data['GET'] = ...
//POST DATA except enctype="multipart/form-data"
@ -44,5 +43,4 @@ class HttpMethod
{
return $this->data;
}
}
}