diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-17 19:20:21 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-18 14:06:07 +0100 |
commit | 73759298658da929fe2da06d0446a93a56859067 (patch) | |
tree | 99972490a099d31c70a0f856d681f71e194103a3 /appinfo/routes.php | |
parent | f741d1fd502687aafede499ab55c0803ad469df3 (diff) |
first stab at intelligent container
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 7b2028865..954656d2d 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -11,12 +11,7 @@ * @copyright Bernhard Posselt 2012, 2014 */ -namespace OCA\News\AppInfo; - -use \OCA\News\AppInfo\Application; - -$application = new Application(); -$application->registerRoutes($this, ['routes' => [ +return ['routes' => [ // page ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'page#settings', 'url' => '/settings', 'verb' => 'GET'], @@ -97,4 +92,4 @@ $application->registerRoutes($this, ['routes' => [ ['name' => 'item_api#star_multiple', 'url' => '/api/v1-2/items/star/multiple', 'verb' => 'PUT'], // FIXME: POST would be more correct ['name' => 'item_api#unstar_multiple', 'url' => '/api/v1-2/items/unstar/multiple', 'verb' => 'PUT'], // FIXME: POST would be more correct -]]); +]]; |