Remove routes and action
This commit is contained in:
parent
8ae21d491a
commit
c49415d764
@ -185,20 +185,4 @@ class SessionController extends Controller{
|
||||
"info" => $info
|
||||
));
|
||||
}
|
||||
|
||||
public static function listAll(){
|
||||
self::preDispatch();
|
||||
$session = new Db\Session();
|
||||
$sessions = $session->getCollection();
|
||||
|
||||
$preparedSessions = array_map(
|
||||
function($x){
|
||||
return ($x['es_id']);
|
||||
}, $sessions
|
||||
);
|
||||
\OCP\JSON::success(array(
|
||||
"session_list" => $preparedSessions
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,15 +42,6 @@ $this->create('documents_documents_list', 'ajax/documents/list')
|
||||
/**
|
||||
* Session routes
|
||||
*/
|
||||
$this->create('documents_session_list', 'ajax/session/list')
|
||||
->get()
|
||||
->action('\OCA\Documents\SessionController', 'listAll')
|
||||
;
|
||||
$this->create('documents_session_list', 'ajax/session/list')
|
||||
->post()
|
||||
->action('\OCA\Documents\SessionController', 'listAll')
|
||||
;
|
||||
|
||||
$this->create('documents_session_info', 'ajax/session/info')
|
||||
->post()
|
||||
->action('\OCA\Documents\SessionController', 'info')
|
||||
|
Loading…
x
Reference in New Issue
Block a user