ea6f3e61be108912e4fa3eddfe28486d9662e9f5
The `GetDocumentOfReceiver` method was introduced to handle retrieving a document for a specified envelope key. It is secured with the `[Authorize(Policy = AuthPolicy.Receiver)]` attribute and responds to HTTP GET requests with a route parameter `envelopeKey`. The previous logic for extracting and validating the `envelopeId` from user claims was removed. This was replaced with a call to `User.GetEnvelopeIdOfReceiver()` for improved clarity and maintainability. The method uses the `mediator` to send a `ReadDocumentQuery` and returns a `NotFound` response if the document's `ByteData` is empty.
Description
No description provided
Languages
JavaScript
82.6%
C#
8.4%
HTML
4.5%
Visual Basic .NET
2.6%
CSS
1.4%
Other
0.4%