From 5d1112f6779f0e97cbb0d30dc86990a6f9cced62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot=20=28=40U-Exp=29?= Date: Fri, 12 Sep 2014 14:02:19 +0200 Subject: [PATCH] Use a get request for tests --- appinfo/routes.php | 2 +- controller/smscontroller.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index ca43952..7f7167c 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -22,5 +22,5 @@ namespace OCA\OcSms\AppInfo; $application = new Application(); $application->registerRoutes($this, array('routes' => array( - array('name' => 'sms#push', 'url' => '/push', 'verb' => 'POST'), + array('name' => 'sms#push', 'url' => '/push', 'verb' => 'GET'), ))); diff --git a/controller/smscontroller.php b/controller/smscontroller.php index 12136c2..23341ab 100644 --- a/controller/smscontroller.php +++ b/controller/smscontroller.php @@ -25,7 +25,8 @@ class SmsController extends Controller { $this->userId = $userId; } - public function push() { + public function push($json_datas) { + var_dump($json_datas); return array("test" => "test2"); }