In the game routes, we will add a GET route to retrieve the games made by a specific user.
mern-vrgame/server/routes/game.routes.js:
router.route('/api/games/by/:userId') .get(gameCtrl.listByMaker)
A GET request to this route will execute the listByMaker method in the game controller.