From c0749af35b20135f867c78b2b8e7aa46d4689725 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 2 Sep 2014 20:16:07 +0300 Subject: [PATCH] Add routes --- appinfo/app.php | 2 +- appinfo/routes.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/appinfo/app.php b/appinfo/app.php index e2a19d96..331ceeef 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -29,7 +29,7 @@ OCP\App::registerPersonal('documents', 'personal'); OCP\App::addNavigationEntry(array( 'id' => 'documents_index', 'order' => 2, - 'href' => OCP\Util::linkTo('documents', 'index.php'), + 'href' => OCP\Util::linkTo('documents/', 'index.php'), 'icon' => OCP\Util::imagePath('documents', 'documents.svg'), 'name' => OCA\Documents\Config::getL10n()->t('Documents')) ); diff --git a/appinfo/routes.php b/appinfo/routes.php index d8a81cc2..134ece9a 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -13,6 +13,10 @@ * Document routes */ +$this->create('documents_index', '') + ->get() + ->actionInclude('documents/index.php'); + $this->create('documents_documents_create', 'ajax/documents/create') ->post() ->action('\OCA\Documents\DocumentController', 'create') @@ -74,6 +78,11 @@ $this->create('documents_session_save', 'ajax/session/save') ->action('\OCA\Documents\SessionController', 'save') ; +$this->create('documents_otpoll', 'ajax/otpoll.php') + ->post() + ->actionInclude('documents/ajax/otpoll.php') +; + /** * User routes */