Use Args::getMethod() at various places

This commit is contained in:
Philipp 2022-01-02 22:25:50 +01:00
parent ee2a15d822
commit 4e67bfed8d
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
5 changed files with 6 additions and 15 deletions

View file

@ -82,7 +82,7 @@ class BaseApi extends BaseModule
public function run(array $request = [], bool $scopecheck = true): ResponseInterface
{
if ($scopecheck) {
switch ($this->server['REQUEST_METHOD'] ?? Router::GET) {
switch ($this->args->getMethod()) {
case Router::DELETE:
case Router::PATCH:
case Router::POST: