|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ownCloud - Office App
|
|
|
|
*
|
|
|
|
* @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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
$this->create('office_genesis', 'ajax/genesis/{es_id}')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\Controller', 'serve')
|
|
|
|
;
|
|
|
|
$this->create('office_genesis', 'ajax/genesis/{es_id}')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\Controller', 'serve')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_session_start', 'ajax/session/start')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\Controller', 'startSession')
|
|
|
|
;
|
|
|
|
$this->create('office_session_start', 'ajax/session/start')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\Controller', 'startSession')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_session_list', 'ajax/session/list')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\Controller', 'listSessions')
|
|
|
|
;
|
|
|
|
$this->create('office_session_list', 'ajax/session/list')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\Controller', 'listSessions')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_session_info', 'ajax/session/info')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\Controller', 'sessionInfo')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_session_listhtml', 'ajax/session/listHtml')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\Controller', 'listSessionsHtml')
|
|
|
|
;
|
|
|
|
$this->create('office_session_listhtml', 'ajax/session/listHtml')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\Controller', 'listSessionsHtml')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_session_join', 'ajax/session/join/{es_id}')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\Controller', 'joinSession')
|
|
|
|
;
|
|
|
|
$this->create('office_session_join', 'ajax/session/join/{es_id}')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\Controller', 'joinSession')
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
$this->create('office_user_avatar', 'ajax/user/avatar')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\UserController', 'sendAvatar')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_user_invite', 'ajax/user/invite')
|
|
|
|
->post()
|
|
|
|
->action('\OCA\Office\UserController', 'invite')
|
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_user_search', 'ajax/user/search')
|
|
|
|
->get()
|
|
|
|
->action('\OCA\Office\UserController', 'search')
|
|
|
|
;
|