Ivan - Add text editor to text area [skip ci]

This commit is contained in:
Ivan Diaz 2016-09-30 18:47:04 -03:00
parent 8747326fca
commit 4f127b1d21
2 changed files with 25 additions and 0 deletions

View File

@ -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();

View 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() {
}
}