Fix
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good Details

This commit is contained in:
Daniel Guzman 2024-08-11 02:37:01 +02:00
parent 5c4e088c0b
commit 3837744b03
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class LeagueController extends AbstractController
{
return $handleCreateLeague($request);
}
#[Route('/api/league/{leagueId}', name: 'app_get_put_league', methods: ['GET, PUT'])]
#[Route('/api/league/{leagueId}', name: 'app_get_put_league', methods: ['GET', 'PUT'])]
public function getOrUpdateLeagueById(Request $request, HandleGetLeagueById $handleGetLeagueById, HandleUpdateLeague $handleUpdateLeague, int $leagueId): JsonResponse
{
if ($request->getMethod() == 'GET')