done
This commit is contained in:
parent
6832c50e12
commit
00846f6f02
20
src/Controller/Controller.php
Normal file
20
src/Controller/Controller.php
Normal file
@ -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([]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user