docs(controller): add comment for future image handling

A comment section has been added to the 'auth.controller.ts' file to advise the development of image handling functionality in the future. The comment is placed right after the error handling for unsuccessful user registration attempts.
This commit is contained in:
Mathis H (Avnyr) 2024-05-22 14:22:06 +02:00
parent baecabc93a
commit cb7a396636
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -50,6 +50,10 @@ async function registerController(req: Request, res: Response) {
logs.error(registerResult.message, req.ip); logs.error(registerResult.message, req.ip);
return res.status(HttpStatusCode.InternalServerError).json({ error: registerResult.message }); return res.status(HttpStatusCode.InternalServerError).json({ error: registerResult.message });
} }
//TODO Image handling
logs.info('User registered successfully', req.ip); logs.info('User registered successfully', req.ip);
return res.status(HttpStatusCode.Created).json({ return res.status(HttpStatusCode.Created).json({
message: 'User registered successfully', message: 'User registered successfully',