Restrict LIST_OPERATORS case to only handle GET requests
This commit is contained in:
parent
9a6f9471f2
commit
705bfa9094
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@
|
|||
preg_match('#^/attachment/([a-fA-F0-9\-]{36,})$#', $path) => Method::DOWNLOAD_ATTACHMENT,
|
||||
($requestMethod === 'POST' || $requestMethod === 'PUT') && $path === '/attachment/upload' => Method::UPLOAD_ATTACHMENT,
|
||||
|
||||
($requestMethod === 'POST' || $requestMethod === 'GET') && $path === '/operators' => Method::LIST_OPERATORS,
|
||||
$requestMethod === 'GET' && $path === '/operators' => Method::LIST_OPERATORS,
|
||||
$requestMethod === 'POST' && $path === '/operators/create' => Method::CREATE_OPERATOR,
|
||||
preg_match('#^/operators/([a-fA-F0-9\-]{36,})$#', $path) && $requestMethod === 'POST' => Method::GET_OPERATOR,
|
||||
preg_match('#^/operators/([a-fA-F0-9\-]{36,})/delete$#', $path) && $requestMethod === 'DELETE' => Method::DELETE_OPERATOR,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue