diff options
Diffstat (limited to 'app/Core')
-rw-r--r-- | app/Core/Request.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Core/Request.php b/app/Core/Request.php index a4c426f0..1b643208 100644 --- a/app/Core/Request.php +++ b/app/Core/Request.php @@ -76,6 +76,17 @@ class Request } /** + * Get the Json request body + * + * @access public + * @return array + */ + public function getJson() + { + return json_decode($this->getBody(), true); + } + + /** * Get the content of an uploaded file * * @access public |