rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit c5f8a3ae6e4b079073e2934ac7f922f98855525e
parent 37942ee3f154325b528870e914cdb30780d0c07b
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue,  3 Feb 2015 07:54:09 +0100

new idea to debug

Diffstat:
Mcore/api/v1/api.php | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/api/v1/api.php b/core/api/v1/api.php @@ -75,7 +75,12 @@ function authenticate(\Slim\Route $route) { * params - name, email, password */ echo ("DEBUG!"); -$app->post('/register', function() { +$app->post('/register', function() use ($app) { + try { + $obj->thisMightThrowException(); + } catch(Exception $e) { + $app->flash('error', $e->getMessage()); + } // check for required params verifyRequiredParams(array('name', 'email', 'password')); @@ -104,6 +109,7 @@ $app->post('/register', function() { } // echo json response echoRespnse(201, $response); + }); /**