diff options
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index c82a011b3..1acf11334 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -29,11 +29,9 @@ use \OCA\AppFramework\App; use \OCA\News\DependencyInjection\DIContainer; - /** * Webinterface */ - $this->create('news_index', '/')->get()->action( function($params){ App::main('PageController', 'index', $params, new DIContainer()); @@ -202,16 +200,5 @@ $this->create('news_usersettings_language', '/usersettings/language')->get()->ac ); - -/** - * Feed API - */ -\OCP\API::register('get', '/apps/news/feeds', - function($urlParams) { - $container = new DIContainer(); - $response = $container['FeedAPI']->getAll($urlParams); - return new \OC_OCS_Result($response); - }, - 'news', - \OC_API::USER_AUTH -); +// include external API +require_once __DIR__ . '/api.php';
\ No newline at end of file |