[backend/api] Make TimelineController response type IEnumerable

This commit is contained in:
Lilian 2024-02-22 02:10:34 +01:00 committed by Laura Hausmann
parent 7a7b3f81b3
commit a8b02aa6f8
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -22,7 +22,7 @@ public class TimelineController(DatabaseContext db, IDistributedCache cache) : C
[HttpGet("home")]
[Authenticate]
[Authorize]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(NoteResponse))]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(IEnumerable<NoteResponse>))]
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(ErrorResponse))]
[ProducesResponseType(StatusCodes.Status403Forbidden, Type = typeof(ErrorResponse))]
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(ErrorResponse))]