18 lines
408 B
PHP
18 lines
408 B
PHP
|
<?php
|
||
|
use Respect\Validation\Validator as DataValidator;
|
||
|
|
||
|
class ListBanUserController extends Controller {
|
||
|
const PATH = '/list-ban';
|
||
|
|
||
|
public function validations() {
|
||
|
return [
|
||
|
'permission' => 'staff_1',
|
||
|
'requestData' => []
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public function handler() {
|
||
|
$banList = Ban::getAll()->toArray();
|
||
|
Response::respondSuccess($banList);
|
||
|
}
|
||
|
}
|