. '/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));
];
}
+function buildDeveloperCurrentGamer()
+{
+ return [
+ 'gamer' => [
+ 'uuid' => '00702342-0000-1111-2222-c3e1500cafe2',
+ 'username' => 'stouyapi',
+ ],
+ ];
+}
+
/**
* For /api/v1/developers/xxx/products/?only=yyy
*/