In the backend, we will add a GET route that queries the Game collection with an ID and returns the game in the response.
mern-vrgame/server/routes/game.routes.js:
router.route('/api/game/:gameId') .get(gameCtrl.read)
The :gameId param in the route URL will be processed first to retrieve the individual game from the database. So we will also add the following to the game routes:
router.param('gameId', gameCtrl.gameByID)