19 lines
467 B
PHP
19 lines
467 B
PHP
<?php
|
|
use Respect\Validation\Validator as DataValidator;
|
|
|
|
class GetTicketStaffController extends Controller {
|
|
const PATH = '/get-tickets';
|
|
const METHOD = 'POST';
|
|
|
|
public function validations() {
|
|
return [
|
|
'permission' => 'staff_1',
|
|
'requestData' => []
|
|
];
|
|
}
|
|
|
|
public function handler() {
|
|
$user = Controller::getLoggedUser();
|
|
Response::respondSuccess($user->sharedTicketList->toArray());
|
|
}
|
|
} |