@@ -23,7 +23,7 @@ class LeagueController extends AbstractController
|
|||||||
{
|
{
|
||||||
return $handleCreateLeague($request);
|
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
|
public function getOrUpdateLeagueById(Request $request, HandleGetLeagueById $handleGetLeagueById, HandleUpdateLeague $handleUpdateLeague, int $leagueId): JsonResponse
|
||||||
{
|
{
|
||||||
if ($request->getMethod() == 'GET')
|
if ($request->getMethod() == 'GET')
|
||||||
|
|||||||
Reference in New Issue
Block a user