mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add instance config endpoint
This commit is contained in:
@@ -27,7 +27,8 @@ use Symfony\Component\Uid\Uuid;
|
||||
name: 'get_all_mine',
|
||||
),
|
||||
new Get(
|
||||
normalizationContext: ['groups' => 'watchlist:item']
|
||||
normalizationContext: ['groups' => 'watchlist:item'],
|
||||
security: 'object.user == user'
|
||||
),
|
||||
new Get(
|
||||
routeName: 'watchlist_calendar',
|
||||
@@ -73,7 +74,7 @@ class WatchList
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'watchLists')]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?User $user = null;
|
||||
public ?User $user = null;
|
||||
|
||||
/**
|
||||
* @var Collection<int, Domain>
|
||||
|
||||
Reference in New Issue
Block a user