diff --git a/models/classes/http/Controller.php b/models/classes/http/Controller.php
index <HASH>..<HASH> 100644
--- a/models/classes/http/Controller.php
+++ b/models/classes/http/Controller.php
@@ -37,7 +37,10 @@ abstract class Controller
     use HttpRequestHelperTrait;
     use HttpFlowTrait;
 
+    /** @var ServerRequestInterface */
     protected $request;
+
+    /** @var ResponseInterface */
     protected $response;
 
     /**
@@ -52,6 +55,11 @@ abstract class Controller
         return $this;
     }
 
+    public function isJsonRequest(): bool
+    {
+        return $this->request && current($this->request->getHeader('content-type')) === 'application/json';
+    }
+
     /**
      * Set Psr7 http response
      *
add isJsonRequest method for controller