richdocuments/appinfo/routes.php

94 lines
2.4 KiB
PHP
Raw Normal View History

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
2014-09-02 20:16:07 +03:00
$this->create('documents_index', '')
->get()
->actionInclude('documents/index.php');
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-12-19 00:07:17 +03:00
$this->create('documents_rename', 'ajax/documents/rename/{file_id}')
->post()
->action('\OCA\Documents\DocumentController', 'rename')
;
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
*/
$this->create('documents_session_joinasuser', 'ajax/session/joinasuser/{file_id}')
2013-08-08 17:05:58 +03:00
->get()
->action('\OCA\Documents\SessionController', 'joinAsUser')
2013-08-08 17:05:58 +03:00
;
$this->create('documents_session_joinasuser', 'ajax/session/joinasuser/{file_id}')
2013-08-08 17:05:58 +03:00
->post()
->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
;
2014-09-02 20:16:07 +03:00
$this->create('documents_otpoll', 'ajax/otpoll.php')
->post()
->actionInclude('documents/ajax/otpoll.php')
;
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
;
$this->create('documents_user_rename', 'ajax/user/rename/{member_id}')
->post()
->action('\OCA\Documents\UserController', 'rename')
;
$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')
;