2013-08-07 21:14:36 +03:00
|
|
|
<?php
|
2013-08-08 00:22:21 +03:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2013-08-07 21:14:36 +03:00
|
|
|
|
|
|
|
$this->create('office_genesis', 'ajax/genesis/{es_id}')
|
|
|
|
->post()
|
2013-08-08 17:05:58 +03:00
|
|
|
->action('\OCA\Office\Controller', 'serve')
|
2013-08-07 21:14:36 +03:00
|
|
|
;
|
|
|
|
$this->create('office_genesis', 'ajax/genesis/{es_id}')
|
|
|
|
->get()
|
2013-08-08 17:05:58 +03:00
|
|
|
->action('\OCA\Office\Controller', 'serve')
|
2013-08-07 21:14:36 +03:00
|
|
|
;
|
2013-08-08 17:05:58 +03:00
|
|
|
|
|
|
|
$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')
|
|
|
|
;
|
|
|
|
|
2013-08-09 19:31:20 +03:00
|
|
|
$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')
|
|
|
|
;
|
|
|
|
|
2013-08-18 17:11:22 +03:00
|
|
|
$this->create('office_session_info', 'ajax/session/info')
|
2013-08-18 12:54:57 +03:00
|
|
|
->post()
|
2013-08-18 17:11:22 +03:00
|
|
|
->action('\OCA\Office\Controller', 'sessionInfo')
|
2013-08-18 12:54:57 +03:00
|
|
|
;
|
|
|
|
|
2013-08-12 19:07:18 +03:00
|
|
|
$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')
|
|
|
|
;
|
|
|
|
|
2013-08-08 17:05:58 +03:00
|
|
|
$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')
|
2013-08-08 19:10:51 +03:00
|
|
|
;
|
|
|
|
|
2013-08-13 19:38:30 +03:00
|
|
|
|
|
|
|
$this->create('office_user_avatar', 'ajax/user/avatar')
|
2013-08-08 19:10:51 +03:00
|
|
|
->get()
|
2013-08-16 18:35:09 +03:00
|
|
|
->action('\OCA\Office\UserController', 'sendAvatar')
|
2013-08-13 19:38:30 +03:00
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_user_invite', 'ajax/user/invite')
|
|
|
|
->post()
|
2013-08-16 18:35:09 +03:00
|
|
|
->action('\OCA\Office\UserController', 'invite')
|
2013-08-13 19:38:30 +03:00
|
|
|
;
|
|
|
|
|
|
|
|
$this->create('office_user_search', 'ajax/user/search')
|
|
|
|
->get()
|
2013-08-16 18:35:09 +03:00
|
|
|
->action('\OCA\Office\UserController', 'search')
|
2013-08-13 19:38:30 +03:00
|
|
|
;
|