| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Document routes | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2013-09-13 13:18:45 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | $this->create('documents_documents_create', 'ajax/documents/create') | 
					
						
							|  |  |  | 	->post() | 
					
						
							|  |  |  | 	->action('\OCA\Documents\DocumentController', 'create') | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\DocumentController', '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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\DocumentController', 'serve') | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $this->create('documents_documents_list', 'ajax/documents/list') | 
					
						
							|  |  |  | 	->get() | 
					
						
							|  |  |  | 	->action('\OCA\Documents\DocumentController', 'listAll') | 
					
						
							| 
									
										
										
										
											2013-08-07 21:14:36 +03:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2013-08-08 17:05:58 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-02 19:54:23 +03:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Session routes | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'listAll') | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'listAll') | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'info') | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'listAllHtml') | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'listAllHtml') | 
					
						
							| 
									
										
										
										
											2013-08-12 19:07:18 +03:00
										 |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-25 16:34:35 +03:00
										 |  |  | $this->create('documents_session_joinasuser', 'ajax/session/joinasuser/{file_id}') | 
					
						
							| 
									
										
										
										
											2013-08-08 17:05:58 +03:00
										 |  |  | 	->get() | 
					
						
							| 
									
										
										
										
											2013-09-25 16:34:35 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'joinAsUser') | 
					
						
							| 
									
										
										
										
											2013-08-08 17:05:58 +03:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2013-09-25 16:34:35 +03:00
										 |  |  | $this->create('documents_session_joinasuser', 'ajax/session/joinasuser/{file_id}') | 
					
						
							| 
									
										
										
										
											2013-08-08 17:05:58 +03:00
										 |  |  | 	->post() | 
					
						
							| 
									
										
										
										
											2013-09-25 16:34:35 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'joinAsUser') | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | $this->create('documents_session_joinasguest', 'ajax/session/joinasguest/{token}') | 
					
						
							|  |  |  | 	->get() | 
					
						
							|  |  |  | 	->action('\OCA\Documents\SessionController', 'joinAsGuest') | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | $this->create('documents_session_joinasguest', 'ajax/session/joinasguest/{token}') | 
					
						
							|  |  |  | 	->post() | 
					
						
							|  |  |  | 	->action('\OCA\Documents\SessionController', 'joinAsGuest') | 
					
						
							| 
									
										
										
										
											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-09-02 19:54:23 +03:00
										 |  |  | 	->action('\OCA\Documents\SessionController', 'save') | 
					
						
							| 
									
										
										
										
											2013-08-18 18:18:53 +03:00
										 |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-02 19:54:23 +03:00
										 |  |  | /** | 
					
						
							|  |  |  |  * User routes | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											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-10-28 20:01:30 +03:00
										 |  |  | $this->create('documents_user_disconnect', 'ajax/user/disconnect/{member_id}') | 
					
						
							|  |  |  | 	->post() | 
					
						
							|  |  |  | 	->action('\OCA\Documents\UserController', 'disconnectUser') | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $this->create('documents_user_disconnectGuest', 'ajax/user/disconnectGuest/{member_id}') | 
					
						
							|  |  |  | 	->post() | 
					
						
							|  |  |  | 	->action('\OCA\Documents\UserController', 'disconnectGuest') | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | ; |