mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-09 17:06:12 +00:00
Turn on app for everybody
This commit is contained in:
parent
445dc8abcf
commit
623494ac56
@ -19,7 +19,6 @@ use \OCA\OcSms\Controller\SmsController;
|
|||||||
|
|
||||||
class Application extends App {
|
class Application extends App {
|
||||||
|
|
||||||
|
|
||||||
public function __construct (array $urlParams=array()) {
|
public function __construct (array $urlParams=array()) {
|
||||||
parent::__construct('ocsms', $urlParams);
|
parent::__construct('ocsms', $urlParams);
|
||||||
|
|
||||||
|
@ -25,12 +25,18 @@ class SmsController extends Controller {
|
|||||||
$this->userId = $userId;
|
$this->userId = $userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @NoAdminRequired
|
||||||
|
* @NoCSRFRequired
|
||||||
|
*/
|
||||||
public function index() {
|
public function index() {
|
||||||
$templateName = 'main'; // will use templates/main.php
|
$params = array('user' => $this->userId);
|
||||||
$parameters = array('key' => 'hi');
|
return new TemplateResponse($this->appName, 'main', $params);
|
||||||
return new TemplateResponse($this->appName, $templateName, $parameters);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @NoAdminRequired
|
||||||
|
*/
|
||||||
public function push($json_datas) {
|
public function push($json_datas) {
|
||||||
var_dump($json_datas);
|
var_dump($json_datas);
|
||||||
return array("test" => "test2");
|
return array("test" => "test2");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user