1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

Use a get request for tests

This commit is contained in:
Loïc Blot (@U-Exp) 2014-09-12 14:02:19 +02:00
parent 3ad96daa21
commit 5d1112f677
2 changed files with 3 additions and 2 deletions

View File

@ -22,5 +22,5 @@ namespace OCA\OcSms\AppInfo;
$application = new Application(); $application = new Application();
$application->registerRoutes($this, array('routes' => array( $application->registerRoutes($this, array('routes' => array(
array('name' => 'sms#push', 'url' => '/push', 'verb' => 'POST'), array('name' => 'sms#push', 'url' => '/push', 'verb' => 'GET'),
))); )));

View File

@ -25,7 +25,8 @@ class SmsController extends Controller {
$this->userId = $userId; $this->userId = $userId;
} }
public function push() { public function push($json_datas) {
var_dump($json_datas);
return array("test" => "test2"); return array("test" => "test2");
} }