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 {
|
||||
|
||||
|
||||
public function __construct (array $urlParams=array()) {
|
||||
parent::__construct('ocsms', $urlParams);
|
||||
|
||||
|
@ -25,12 +25,18 @@ class SmsController extends Controller {
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @NoCSRFRequired
|
||||
*/
|
||||
public function index() {
|
||||
$templateName = 'main'; // will use templates/main.php
|
||||
$parameters = array('key' => 'hi');
|
||||
return new TemplateResponse($this->appName, $templateName, $parameters);
|
||||
$params = array('user' => $this->userId);
|
||||
return new TemplateResponse($this->appName, 'main', $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function push($json_datas) {
|
||||
var_dump($json_datas);
|
||||
return array("test" => "test2");
|
||||
|
Loading…
x
Reference in New Issue
Block a user