mirror of
https://github.com/opensupports/opensupports.git
synced 2025-08-19 16:58:39 +02:00
Ivan - Add text editor to text area [skip ci]
This commit is contained in:
parent
8747326fca
commit
4f127b1d21
@ -1,9 +1,11 @@
|
||||
<?php
|
||||
require_once 'staff/get.php';
|
||||
require_once 'staff/assign.php';
|
||||
|
||||
$systemControllerGroup = new ControllerGroup();
|
||||
$systemControllerGroup->setGroupPath('/staff');
|
||||
|
||||
$systemControllerGroup->addController(new GetStaffController);
|
||||
$systemControllerGroup->addController(new AssignStaffController);
|
||||
|
||||
$systemControllerGroup->finalize();
|
23
server/controllers/staff/assign.php
Normal file
23
server/controllers/staff/assign.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
use Respect\Validation\Validator as DataValidator;
|
||||
DataValidator::with('CustomValidations', true);
|
||||
|
||||
class AssignStaffController extends Controller {
|
||||
const PATH = '/assign';
|
||||
|
||||
public function validations() {
|
||||
return [
|
||||
'permission' => 'staff_1',
|
||||
'requestData' => [
|
||||
'ticketNumber' => [
|
||||
'validation' => DataValidator::validTicketNumber(),
|
||||
'error' => ERRORS::INVALID_TICKET
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public function handler() {
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user