update: find mailbox id and name from any where

This commit is contained in:
mahyargdz
2025-07-12 12:13:26 +03:30
parent 24e315ff46
commit 352cdde13f
4 changed files with 114 additions and 32 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ export class EmailController {
return this.emailService.getEmailStatus(params.queueId);
}
@Get("messages/inbox/:messageId")
@Get("messages/:messageId")
@ApiOperation({ summary: "Get a specific message" })
@ApiResponse({ status: 200, description: "Message details" })
@ApiResponse({ status: 404, description: "Message not found" })
@@ -39,7 +39,7 @@ export class EmailController {
return this.emailService.getMessage(userId, params.messageId);
}
@Delete("messages/inbox/:messageId")
@Delete("messages/:messageId")
@ApiOperation({ summary: "Delete a message" })
@ApiResponse({ status: 200, description: "Message deleted successfully" })
@ApiResponse({ status: 404, description: "Message not found" })