diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-09 20:04:27 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-09 20:04:27 -0500 |
commit | 7eadf7cfd80176ab9b74c9c6a55c28db0f43fa88 (patch) | |
tree | b55b32bf9200f4ed045adfabaadb00d0ce20fc65 /app/Core/Request.php | |
parent | e89ba5e9e692f33427fedb05a095255f27480a6b (diff) |
Start templates cleanup and reorganisation
Diffstat (limited to 'app/Core/Request.php')
-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 |