feat: add POST watchlist endpoint

This commit is contained in:
Maël Gangloff
2024-07-18 13:40:49 +02:00
parent 2efc3da018
commit 1533469441
4 changed files with 81 additions and 15 deletions

View File

@@ -3,21 +3,14 @@
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\Security\Core\User\UserInterface;
class MeController extends AbstractController
{
public function __construct(
private readonly Security $security
)
{
}
public function __invoke(): UserInterface
{
return $this->security->getUser();
return $this->getUser();
}
}