From 5af099a647da421553d00abe5a4f3d6ed21873a6 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 5 Jan 2020 00:50:20 +0100 Subject: [PATCH] build current_gamer json --- bin/import-game-data.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bin/import-game-data.php b/bin/import-game-data.php index d4033af..5486ef5 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -113,6 +113,12 @@ foreach ($developers as $developer) { . '/products/index.htm', buildDeveloperProducts($developer['products'], $developer['info']) ); + writeJson( + //index.htm does not need a rewrite rule + 'api/v1/developers/' . $developer['info']->uuid + . '/current_gamer', + buildDeveloperCurrentGamer() + ); } writeJson('api/v1/discover-data/discover.json', buildDiscover($games)); @@ -432,6 +438,16 @@ function buildDetails($game) ]; } +function buildDeveloperCurrentGamer() +{ + return [ + 'gamer' => [ + 'uuid' => '00702342-0000-1111-2222-c3e1500cafe2', + 'username' => 'stouyapi', + ], + ]; +} + /** * For /api/v1/developers/xxx/products/?only=yyy */ -- 2.30.2