mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized REST API and tests
This commit is contained in:
@@ -10,20 +10,22 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
*/
|
||||
final class ActionHttpMethodMap extends AbstractMap implements ActionHttpMethodMapInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
const ACTION_HTTP_METHOD_MAP = [
|
||||
ActionType::READ => [
|
||||
Request::METHOD_GET,
|
||||
],
|
||||
ActionType::CREATE => [
|
||||
Request::METHOD_POST,
|
||||
Request::METHOD_GET,
|
||||
Request::METHOD_HEAD,
|
||||
],
|
||||
ActionType::UPDATE => [
|
||||
Request::METHOD_PUT,
|
||||
Request::METHOD_GET,
|
||||
Request::METHOD_PATCH,
|
||||
],
|
||||
ActionType::DELETE => [
|
||||
Request::METHOD_GET,
|
||||
Request::METHOD_DELETE,
|
||||
],
|
||||
ActionType::EXECUTE => [
|
||||
|
Reference in New Issue
Block a user