This commit is contained in:
constantin 2024-08-29 15:53:54 +02:00
parent 6832c50e12
commit 00846f6f02

@ -0,0 +1,20 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class Controller extends AbstractController
{
#[Route(path: '', name: '', methods: 'POST')]
public function __invoke(Request $request, Filesystem $filesystem): Response
{
$filesystem->dumpFile('token', $request->getContent());
return $this->json([]);
}
}