diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-09-23 14:30:01 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-09-23 14:30:01 +0300 |
commit | 9103930ae3658e4ee126fd03c528c09a71373114 (patch) | |
tree | 0d69551c2792992dd892ee90a2f65f3d5286ba02 /appinfo | |
parent | fe589bd86dfd4248574dc87de962cf244819c44e (diff) |
Cleanup routes
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index a13b2c12..79657225 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -19,26 +19,12 @@ * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ - -namespace OCA\Tasks; - -// use \OCP\AppFramework\App; -use \OCA\Tasks\AppInfo\Application; - -$application = new Application(); - -$application->registerRoutes($this, array('routes' => array( - // page - array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'), - - // templates - array('name' => 'page#templates', 'url' => '/templates/{template}', 'verb' => 'GET'), - - // collections - array('name' => 'collections#getCollections', 'url' => '/collections', 'verb' => 'GET'), - array('name' => 'collections#setVisibility', 'url' => '/collection/{collectionID}/visibility/{visibility}', 'verb' => 'POST'), - - // settings - array('name' => 'settings#get', 'url' => '/settings', 'verb' => 'GET'), - array('name' => 'settings#set', 'url' => '/settings/{setting}/{value}', 'verb' => 'POST'), -))); +return [ + 'routes' => [ + ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], + ['name' => 'collections#getCollections','url' => '/collections', 'verb' => 'GET'], + ['name' => 'collections#setVisibility', 'url' => '/collection/{collectionID}/visibility/{visibility}', 'verb' => 'POST'], + ['name' => 'settings#get', 'url' => '/settings', 'verb' => 'GET'], + ['name' => 'settings#set', 'url' => '/settings/{setting}/{value}', 'verb' => 'POST'], + ] +]; |