diff --git a/services/question/src/controllers/questionController.ts b/services/question/src/controllers/questionController.ts index b992b3189e..915d7bdb97 100644 --- a/services/question/src/controllers/questionController.ts +++ b/services/question/src/controllers/questionController.ts @@ -1,7 +1,7 @@ -import { Response } from 'express'; +import { Request, Response } from 'express'; import { Question } from '../models/questionModel'; -export const getQuestions = async (res: Response) => { +export const getQuestions = async (req: Request, res: Response) => { const questions = await Question.find(); const questionTitles = questions.map(q => q.title); res.status(200).json({