diff --git a/api/routes/game/details.php b/api/routes/game/details.php index 809da2d..0dd5d69 100644 --- a/api/routes/game/details.php +++ b/api/routes/game/details.php @@ -31,6 +31,10 @@ return [ "post" => function($data, $headers, $db) { $imagesHostName = 'https://geohry.skolazdola.cz/'; + if(!isset($data['gameurl']) || empty($data['gameurl'])) return [ + "error" => "Property 'gameurl' is not set." + ]; + $gameUrl = $data['gameurl']; $gameDetails = $db->select('games4', '*', [