summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2014-09-29 13:45:17 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2014-09-29 13:45:17 -0400
commit885b506695403465443b3dce124910fd2c9f66e6 (patch)
treee99d92fc00755613cdb9bdc1a2c97890caccc500 /appinfo
parent69cc52228555aa251718f52c6a2e6b573a871ae4 (diff)
web app manifest
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php9
-rw-r--r--appinfo/routes.php3
2 files changed, 12 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index eaeafc858..d80498a4a 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -29,6 +29,7 @@ use \OCA\News\Controller\UtilityApiController;
use \OCA\News\Controller\FolderApiController;
use \OCA\News\Controller\FeedApiController;
use \OCA\News\Controller\ItemApiController;
+use \OCA\News\Controller\AppController;
use \OCA\News\Service\FolderService;
use \OCA\News\Service\FeedService;
@@ -169,6 +170,14 @@ class Application extends App {
);
});
+ $container->registerService('AppController', function($c) {
+ return new AppController(
+ $c->query('AppName'),
+ $c->query('Request'),
+ $c->query('ServerContainer')->getURLGenerator(),
+ $c->query('AppConfig')
+ );
+ });
/**
* Business Layer
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 66f3e97e7..3e2ac189f 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -22,6 +22,9 @@ $application->registerRoutes($this, ['routes' => [
['name' => 'page#settings', 'url' => '/settings', 'verb' => 'GET'],
['name' => 'page#update_settings', 'url' => '/settings', 'verb' => 'PUT'],
+ // web app manifest
+ ['name' => 'app#manifest', 'url' => '/manifest.webapp', 'verb' => 'GET'],
+
// folders
['name' => 'folder#index', 'url' => '/folders', 'verb' => 'GET'],
['name' => 'folder#create', 'url' => '/folders', 'verb' => 'POST'],