Modularise the getGamesList endpoint