mirror of
https://github.com/jbcr/core.git
synced 2026-04-02 22:32:20 +02:00
Only allow GET operations in the API
This commit is contained in:
@@ -16,7 +16,10 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
|
||||
/**
|
||||
* @ApiResource
|
||||
* @ApiResource(
|
||||
* collectionOperations={"get"},
|
||||
* itemOperations={"get"}
|
||||
* )
|
||||
* @ApiFilter(SearchFilter::class)
|
||||
* @ORM\Entity(repositoryClass="Bolt\Repository\ContentRepository")
|
||||
* @ORM\Table(name="bolt_content")
|
||||
|
||||
Reference in New Issue
Block a user