opensupports/server/controllers/staff/get-tickets.php

19 lines
467 B
PHP
Raw Normal View History

<?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());
}
}