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"); }