From 004fcbbcc7609ca83807f2e38967ef54f469bf72 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 23 Jul 2016 21:24:54 +0200 Subject: Move to new directory structure --- lib/Controller/ApiController.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/Controller/ApiController.php (limited to 'lib/Controller/ApiController.php') diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php new file mode 100644 index 000000000..f3b77b379 --- /dev/null +++ b/lib/Controller/ApiController.php @@ -0,0 +1,37 @@ + + * @author Bernhard Posselt + * @copyright Alessandro Cosentino 2012 + * @copyright Bernhard Posselt 2012, 2014 + */ + +namespace OCA\News\Controller; + +use OCP\IRequest; +use OCP\AppFramework\ApiController as BaseApiController; + +class ApiController extends BaseApiController { + + public function __construct($appName, + IRequest $request){ + parent::__construct($appName, $request); + } + + /** + * @PublicPage + * @NoCSRFRequired + * @CORS + */ + public function index() { + return [ + 'apiLevels' => ['v1-2'] + ]; + } + +} -- cgit v1.2.3