diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-10-29 06:33:34 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2021-10-29 06:33:34 -0600 |
| commit | bcb1c9b652d7b74e785f1221e5df6836e6bbfffe (patch) | |
| tree | 838bde6f8b1f6bac003b010b490ee1a7df1576f7 /Jellyfin.Api/Controllers/ClientLogController.cs | |
| parent | 0e584f68409e71204f6b9387cde8efe2adb0fbed (diff) | |
Use response dto
Diffstat (limited to 'Jellyfin.Api/Controllers/ClientLogController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ClientLogController.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Jellyfin.Api/Controllers/ClientLogController.cs b/Jellyfin.Api/Controllers/ClientLogController.cs index f50d56097..7068c9771 100644 --- a/Jellyfin.Api/Controllers/ClientLogController.cs +++ b/Jellyfin.Api/Controllers/ClientLogController.cs @@ -98,14 +98,14 @@ namespace Jellyfin.Api.Controllers /// <response code="200">Document saved.</response> /// <response code="403">Event logging disabled.</response> /// <response code="413">Upload size too large.</response> - /// <returns>Created file name.</returns> + /// <returns>Create response.</returns> [HttpPost("Document")] - [ProducesResponseType(typeof(string), StatusCodes.Status200OK)] + [ProducesResponseType(typeof(ClientLogDocumentResponseDto), StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status403Forbidden)] [ProducesResponseType(StatusCodes.Status413PayloadTooLarge)] [AcceptsFile(MediaTypeNames.Text.Plain)] [RequestSizeLimit(MaxDocumentSize)] - public async Task<ActionResult<string>> LogFile() + public async Task<ActionResult<ClientLogDocumentResponseDto>> LogFile() { if (!_serverConfigurationManager.Configuration.AllowClientLogUpload) { @@ -123,7 +123,7 @@ namespace Jellyfin.Api.Controllers var fileName = await _clientEventLogger.WriteDocumentAsync(authorizationInfo, Request.Body) .ConfigureAwait(false); - return Ok(fileName); + return Ok(new ClientLogDocumentResponseDto(fileName)); } private void Log(ClientLogEventDto dto, AuthorizationInfo authorizationInfo) |
