Add routes

pull/1/head
Victor Dubiniuk 10 years ago
parent 3f7c18e6e2
commit c0749af35b

@ -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'))
);

@ -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
*/

Loading…
Cancel
Save