Closed sunnydl closed 3 years ago
Create a file in services folder in backend, name it matchService.ts
inside the file, create a function with an input of puuid: string, and an output of list of match.
Given the puuid, call the Riot Api endpoint https://developer.riotgames.com/apis#match-v5/GET_getMatchIdsByPUUID to fetch 10 games.
return the list of games at the end of function.
Please follow the format of how summonerInfo was done, thanks
Create a file in services folder in backend, name it matchService.ts
inside the file, create a function with an input of puuid: string, and an output of list of match.
Given the puuid, call the Riot Api endpoint https://developer.riotgames.com/apis#match-v5/GET_getMatchIdsByPUUID to fetch 10 games.
return the list of games at the end of function.
Please follow the format of how summonerInfo was done, thanks