feat: add instance config endpoint

This commit is contained in:
Maël Gangloff
2024-08-04 15:49:38 +02:00
parent e413bfedc0
commit 7cf2375952
13 changed files with 115 additions and 23 deletions

View File

@@ -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>