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
86.8%
C#
6.6%
Visual Basic .NET
2.7%
HTML
2.3%
CSS
1.1%
Other
0.4%