20 lines
530 B
PHP
20 lines
530 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
class DencodeController extends AbstractController
|
|
{
|
|
#[Route('/api/dencode', name: 'api_dencode', methods: "GET")]
|
|
public function index(): Response
|
|
{
|
|
return $this->json([
|
|
'message' => 'Welcome to your new controller!',
|
|
'path' => 'src/Controller/DencodeController.php',
|
|
]);
|
|
}
|
|
}
|