diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-02 16:55:11 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-02 16:55:11 +0200 |
commit | c8c01278d837b3ecc01636fdd5b2d52638833687 (patch) | |
tree | be9a12ebe3734978486623427e914d8b4db9982c /appinfo/routes.php | |
parent | df91fdfa373cacef6aa20998a00b8fbcfd164d1b (diff) |
implement all routes and function bodies for api calls
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 |