2013-08-07 21:14:36 +03:00
|
|
|
<?php
|
2013-08-08 00:22:21 +03:00
|
|
|
/**
|
2013-08-28 12:02:27 +02:00
|
|
|
* ownCloud - Documents App
|
2013-08-08 00:22:21 +03:00
|
|
|
*
|
|
|
|
* @author Victor Dubiniuk
|
|
|
|
* @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
|
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
*/
|
2013-08-07 21:14:36 +03:00
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_genesis', 'ajax/genesis/{es_id}')
|
2013-08-07 21:14:36 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'serve')
|
2013-08-07 21:14:36 +03:00
|
|
|
;
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_genesis', 'ajax/genesis/{es_id}')
|
2013-08-07 21:14:36 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'serve')
|
2013-08-07 21:14:36 +03:00
|
|
|
;
|
2013-08-08 17:05:58 +03:00
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_start', 'ajax/session/start')
|
2013-08-08 17:05:58 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'startSession')
|
2013-08-08 17:05:58 +03:00
|
|
|
;
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_start', 'ajax/session/start')
|
2013-08-08 17:05:58 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'startSession')
|
2013-08-08 17:05:58 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 19:38:17 +02:00
|
|
|
$this->create('documents_documents_list', 'ajax/documents/list')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Documents\Controller', 'listDocuments')
|
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_list', 'ajax/session/list')
|
2013-08-09 19:31:20 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'listSessions')
|
2013-08-09 19:31:20 +03:00
|
|
|
;
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_list', 'ajax/session/list')
|
2013-08-09 19:31:20 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'listSessions')
|
2013-08-09 19:31:20 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_info', 'ajax/session/info')
|
2013-08-18 12:54:57 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'sessionInfo')
|
2013-08-18 12:54:57 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_listhtml', 'ajax/session/listHtml')
|
2013-08-12 19:07:18 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'listSessionsHtml')
|
2013-08-12 19:07:18 +03:00
|
|
|
;
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_listhtml', 'ajax/session/listHtml')
|
2013-08-12 19:07:18 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'listSessionsHtml')
|
2013-08-12 19:07:18 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_join', 'ajax/session/join/{es_id}')
|
2013-08-08 17:05:58 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'joinSession')
|
2013-08-08 17:05:58 +03:00
|
|
|
;
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_join', 'ajax/session/join/{es_id}')
|
2013-08-08 17:05:58 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'joinSession')
|
2013-08-08 19:10:51 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_session_save', 'ajax/session/save')
|
2013-08-18 18:18:53 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\Controller', 'save')
|
2013-08-18 18:18:53 +03:00
|
|
|
;
|
|
|
|
|
2013-08-13 19:38:30 +03:00
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_user_avatar', 'ajax/user/avatar')
|
2013-08-08 19:10:51 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\UserController', 'sendAvatar')
|
2013-08-13 19:38:30 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_user_invite', 'ajax/user/invite')
|
2013-08-13 19:38:30 +03:00
|
|
|
->post()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\UserController', 'invite')
|
2013-08-13 19:38:30 +03:00
|
|
|
;
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
$this->create('documents_user_search', 'ajax/user/search')
|
2013-08-13 19:38:30 +03:00
|
|
|
->get()
|
2013-08-28 12:02:27 +02:00
|
|
|
->action('\OCA\Documents\UserController', 'search')
|
2013-08-13 19:38:30 +03:00
|
|
|
;
|