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:
parent
3ad96daa21
commit
5d1112f677
@ -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'),
|
||||||
)));
|
)));
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user