mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: method not allowed on connector creation
This commit is contained in:
@@ -86,14 +86,12 @@ use Symfony\Component\Uid\Uuid;
|
||||
new Post(
|
||||
normalizationContext: ['groups' => 'watchlist:list'],
|
||||
denormalizationContext: ['groups' => 'watchlist:create'],
|
||||
name: 'create',
|
||||
processor: WatchListUpdateProcessor::class,
|
||||
),
|
||||
new Put(
|
||||
normalizationContext: ['groups' => 'watchlist:item'],
|
||||
denormalizationContext: ['groups' => ['watchlist:create', 'watchlist:token']],
|
||||
security: 'object.user == user',
|
||||
name: 'update',
|
||||
processor: WatchListUpdateProcessor::class,
|
||||
),
|
||||
new Delete(
|
||||
|
||||
Reference in New Issue
Block a user