opensupports/server/controllers/ticket/seen.php

23 lines
560 B
PHP
Raw Normal View History

2016-10-20 23:34:06 +02:00
<?php
use Respect\Validation\Validator as DataValidator;
class SeenController extends Controller {
const PATH = '/seen';
public function validations() {
return [
'permission' => 'user',
'requestData' => [
'ticketNumber' => [
'validation' => DataValidator::validTicketNumber(),
'error' => ERRORS::INVALID_TICKET
]
]
];
}
public function handler() {
$ticketnumber = Controller::request('ticketNumber');
}
}