[backend/api] Make TimelineController response type IEnumerable
This commit is contained in:
parent
7a7b3f81b3
commit
a8b02aa6f8
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class TimelineController(DatabaseContext db, IDistributedCache cache) : C
|
||||||
[HttpGet("home")]
|
[HttpGet("home")]
|
||||||
[Authenticate]
|
[Authenticate]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(NoteResponse))]
|
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(IEnumerable<NoteResponse>))]
|
||||||
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(ErrorResponse))]
|
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(ErrorResponse))]
|
||||||
[ProducesResponseType(StatusCodes.Status403Forbidden, Type = typeof(ErrorResponse))]
|
[ProducesResponseType(StatusCodes.Status403Forbidden, Type = typeof(ErrorResponse))]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(ErrorResponse))]
|
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(ErrorResponse))]
|
||||||
|
|
Loading…
Add table
Reference in a new issue