import type { Request, Response } from "express";
import { prepareQuestions } from "../services/gameService.js";

export const getGame = async (req: Request, res: Response) => {
  const query = gameRequestSchema.parse(req.query);
  const questions = await prepareQuestions(query);
  res.json({ success: true, data: questions });
};
