mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Create a basic SmsController
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* ownCloud - ocsms
|
||||
*
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later. See the COPYING file.
|
||||
*
|
||||
* @author Loic Blot <loic.blot@unix-experience.fr>
|
||||
* @copyright Loic Blot 2014
|
||||
*/
|
||||
|
||||
namespace OCA\OcSms\Controller;
|
||||
|
||||
|
||||
use \OCP\IRequest;
|
||||
use \OCP\AppFramework\Http\TemplateResponse;
|
||||
use \OCP\AppFramework\Controller;
|
||||
|
||||
class SmsController extends Controller {
|
||||
|
||||
private $userId;
|
||||
|
||||
public function __construct($appName, IRequest $request, $userId){
|
||||
parent::__construct($appName, $request);
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function push() {
|
||||
return array("test" => "test2");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user