<?php

declare(strict_types=1);

namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;

class TestController extends AbstractController
{
    #[Route('/api/test', name: 'api_test', methods: ['GET', 'POST'])]
    public function test(): JsonResponse
    {
        return $this->json(['status' => 'ok', 'message' => 'Test endpoint works!']);
    }
}
