summaryrefslogtreecommitdiff
path: root/app/Core/Request.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-09 20:04:27 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-09 20:04:27 -0500
commit7eadf7cfd80176ab9b74c9c6a55c28db0f43fa88 (patch)
treeb55b32bf9200f4ed045adfabaadb00d0ce20fc65 /app/Core/Request.php
parente89ba5e9e692f33427fedb05a095255f27480a6b (diff)
Start templates cleanup and reorganisation
Diffstat (limited to 'app/Core/Request.php')
-rw-r--r--app/Core/Request.php11
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