Revert "Issue 14325: Process "post" requests only once"

This reverts commit 0b710ce4fb.
This commit is contained in:
Hypolite Petovan 2025-01-04 21:42:18 -05:00
parent f6afc5a2bb
commit ef9c2cb223

View file

@ -223,17 +223,17 @@ abstract class BaseModule implements ICanHandleRequests
switch ($this->args->getMethod()) { switch ($this->args->getMethod()) {
case Router::DELETE: case Router::DELETE:
$this->delete($request); $this->delete($request);
return $this->response->generate(); break;
case Router::PATCH: case Router::PATCH:
$this->patch($request); $this->patch($request);
return $this->response->generate(); break;
case Router::POST: case Router::POST:
Core\Hook::callAll($this->args->getModuleName() . '_mod_post', $request); Core\Hook::callAll($this->args->getModuleName() . '_mod_post', $request);
$this->post($request); $this->post($request);
return $this->response->generate(); break;
case Router::PUT: case Router::PUT:
$this->put($request); $this->put($request);
return $this->response->generate(); break;
case Router::GET: case Router::GET:
$this->get($request); $this->get($request);
break; break;