Skip to content

Commit

Permalink
Fix getHealth fuction parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelim01 committed Sep 17, 2024
1 parent 2171c15 commit 6cf6298
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ QUESTION_DB_CLOUD_URI=<FILL-THIS-IN>
QUESTION_DB_LOCAL_URI=mongodb://question-db:27017/question
QUESTION_DB_USERNAME=user
QUESTION_DB_PASSWORD=password
QUESTION_CORS_ORIGIN=*
QUESTION_PORT=8081

NODE_ENV=development
5 changes: 2 additions & 3 deletions services/question/src/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Response } from 'express';
import { Request, Response } from 'express';

export const getHealth = async (res: Response) => {
export const getHealth = async (req: Request, res: Response) => {
res.status(200).json({
message: 'Server is up and running!',
});
return;
};

0 comments on commit 6cf6298

Please sign in to comment.