Files
kupshop/bundles/KupShop/ApiBundle/Controller/ApiController.php
2025-08-02 16:30:27 +02:00

28 lines
631 B
PHP

<?php
namespace KupShop\ApiBundle\Controller;
use KupShop\ApiBundle\View\ApiView;
use KupShop\ApiBundle\View\DocsView;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class ApiController extends AbstractController
{
/**
* @Route("/api/docs/")
*/
public function docsAction(DocsView $view)
{
return $view->getResponse();
}
/**
* @Route("/api/{path}", requirements={"path": ".*"}, methods={"POST", "GET", "DELETE"})
*/
public function apiAction(ApiView $view)
{
return $view->getResponse();
}
}