tasks/lib/Controller/PageController.php

53 lines
1.4 KiB
PHP
Raw Normal View History

2014-04-05 23:09:35 +00:00
<?php
/**
* Nextcloud - Tasks
2015-07-19 12:05:29 +00:00
*
* @author Raimund Schlüßler
2019-01-26 20:47:53 +00:00
* @copyright 2019 Raimund Schlüßler <raimund.schluessler@mailbox.org>
2015-07-19 12:05:29 +00:00
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
2014-04-05 23:09:35 +00:00
*
*/
2014-07-30 19:03:54 +00:00
namespace OCA\Tasks\Controller;
2014-04-05 23:09:35 +00:00
2014-08-17 20:35:34 +00:00
use \OCP\AppFramework\Controller;
use \OCP\AppFramework\Http\TemplateResponse;
2016-03-08 21:23:27 +00:00
use \OCP\IRequest;
2014-04-05 23:09:35 +00:00
/**
* Controller class for main page.
*/
class PageController extends Controller {
2016-03-01 20:48:25 +00:00
/**
* @param string $appName
2019-01-26 20:47:53 +00:00
* @param IRequest $request an instance of the request
2016-03-01 20:48:25 +00:00
*/
2019-06-14 12:38:21 +00:00
public function __construct(string $appName, IRequest $request) {
2016-03-01 20:48:25 +00:00
parent::__construct($appName, $request);
}
2014-04-05 23:09:35 +00:00
/**
* @NoAdminRequired
* @NoCSRFRequired
2019-01-26 20:47:53 +00:00
*
* @return TemplateResponse
2014-04-05 23:09:35 +00:00
*/
2019-01-26 20:47:53 +00:00
public function index():TemplateResponse {
2019-01-26 19:21:23 +00:00
return new TemplateResponse('tasks', 'main');
2014-04-05 23:09:35 +00:00
}
2015-07-13 11:55:35 +00:00
}