GET stomp API call added
This commit is contained in:
@@ -12,9 +12,15 @@ if (!$GLOBALS['modules_enabled']['office']) {
|
||||
echo '405 Not Allowed';
|
||||
exit;
|
||||
}
|
||||
if ($API_office_stompjes->request_method === 'GET') {
|
||||
$API_office_stompjes->checkPermissions('office-stompjes', 'RO');
|
||||
|
||||
if ($API_office_stompjes->request_method === 'POST') {
|
||||
$API_office_stompjes->checkPermissions('ofice-stompjes-canstomp', 'RW');
|
||||
$stompjes = $API_office_stompjes->getStomp();
|
||||
|
||||
$API_office_stompjes->apiOutput($code = 200, ['success' => $stompjes]);
|
||||
|
||||
} elseif ($API_office_stompjes->request_method === 'POST') {
|
||||
$API_office_stompjes->checkPermissions('office-stompjes-canstomp', 'RW');
|
||||
|
||||
$API_office_stompjes->return_url = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user