mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-15 08:30:06 +01:00
fix: de-authorize endpoint for history retrieval
This commit is contained in:
@@ -125,14 +125,13 @@ public class QuotesController : ControllerBase
|
||||
/// [AUTHED] Get specified quote summary
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// As per project's guidelines, requires a JWT.
|
||||
/// <s>As per project's guidelines, requires a JWT.</s> We need this endpoint to check previous draws for draw history.
|
||||
/// </remarks>
|
||||
/// <param name="id">The quote id in question</param>
|
||||
/// <returns>A quote: id, quote content and author, imageUrl and categories if successful, otherwise: error message</returns>
|
||||
/// <response code="200">Returned on valid request</response>
|
||||
/// <response code="404">Returned when quote id is invalid or simply doesn't exist</response>
|
||||
[HttpGet("{id}")]
|
||||
[Authorize]
|
||||
[ProducesResponseType(typeof(QuoteShortDTO), 200)]
|
||||
[ProducesResponseType(typeof(ErrorDTO), 404)]
|
||||
public async Task<IActionResult> GetQuoteById(int id)
|
||||
|
||||
Reference in New Issue
Block a user