20 lines
519 B
PHP
20 lines
519 B
PHP
|
<?php
|
||
|
use Respect\Validation\Validator as DataValidator;
|
||
|
DataValidator::with('CustomValidations', true);
|
||
|
|
||
|
class GetCustomResponsesController extends Controller {
|
||
|
const PATH = '/get-custom-responses';
|
||
|
|
||
|
public function validations() {
|
||
|
return [
|
||
|
'permission' => 'staff_1',
|
||
|
'requestData' => []
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public function handler() {
|
||
|
$customResponsesList = CustomResponse::getAll();
|
||
|
|
||
|
Response::respondSuccess($customResponsesList->toArray());
|
||
|
}
|
||
|
}
|