aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserAvatarController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-23 18:15:25 +0800
committerGitHub <noreply@github.com>2020-08-23 18:15:25 +0800
commita9edf94e42e5288c0d46994546eef6a507768fcf (patch)
tree7edfeca01b33e2bff98f10148b371d473e73a299 /Timeline/Controllers/UserAvatarController.cs
parentc28848a35b0f31a59f9d02641571495822ad0db8 (diff)
parentb1b10b7dda86138d020b1545b4de55b37ee793b3 (diff)
downloadtimeline-a9edf94e42e5288c0d46994546eef6a507768fcf.tar.gz
timeline-a9edf94e42e5288c0d46994546eef6a507768fcf.tar.bz2
timeline-a9edf94e42e5288c0d46994546eef6a507768fcf.zip
Merge pull request #150 from crupest/swagger
Enhance swagger docs.
Diffstat (limited to 'Timeline/Controllers/UserAvatarController.cs')
-rw-r--r--Timeline/Controllers/UserAvatarController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Controllers/UserAvatarController.cs b/Timeline/Controllers/UserAvatarController.cs
index 32f63fc6..97c4bdb8 100644
--- a/Timeline/Controllers/UserAvatarController.cs
+++ b/Timeline/Controllers/UserAvatarController.cs
@@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
-using System.IO;
using System.Threading.Tasks;
using Timeline.Auth;
using Timeline.Filters;
@@ -46,6 +45,7 @@ namespace Timeline.Controllers
/// <param name="ifNoneMatch">If-None-Match header.</param>
/// <returns>Avatar data.</returns>
[HttpGet("users/{username}/avatar")]
+ [Produces("image/png", "image/jpeg", "image/gif", "image/webp", "application/json", "text/json")]
[ProducesResponseType(typeof(byte[]), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status304NotModified)]
[ProducesResponseType(StatusCodes.Status404NotFound)]