fix(plugins): support both /plugins and /api/plugins routes behind reverse proxy
ogcore-debian-package/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/tag This commit looks good Details

devel 1.13.0
Juan Manuel Bardallo 2026-10-22 11:02:03 +02:00
parent 7f0953b6d1
commit de3bd7a93a
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
#[Route('/api/plugins')]
#[Route(path: '/{_prefix}plugins', requirements: ['_prefix' => '(api/)?'], defaults: ['_prefix' => ''])]
#[IsGranted('ROLE_USER')]
class PluginController extends AbstractController
{
@ -22,7 +22,7 @@ class PluginController extends AbstractController
) {
}
#[Route('', name: 'api_plugins_list', methods: ['GET'])]
#[Route('', methods: ['GET'])]
public function list(): JsonResponse
{
$plugins = $this->pluginRepository->findBy(['enabled' => true], ['name' => 'ASC']);