Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FinkiChattery/FinkiChattery.Api/Controllers/v1/AnswersController.cs

    r9df3069 rcbdbb49  
    3232        }
    3333
    34         [HttpPut("{answerUid:Guid}")]
    35         [Authorize(AuthenticationSchemes = IdentityServerAuthenticationDefaults.AuthenticationScheme, Policy = AuthenticationPolicy.Student)]
    36         public async Task<IActionResult> EditAnswer([FromRoute] Guid questionUid, [FromRoute] Guid answerUid, [FromBody] AnswerQuestionRequest request)
    37         {
    38             var answer = await MediatorService.SendAsync(new EditAnswerCommand(questionUid, answerUid, request.Text));
    39             return Ok(answer.ToAnswerQuestionStateResponse());
    40         }
    41 
    4234        [HttpPut("{answerUid:Guid}/correct")]
    4335        [Authorize(AuthenticationSchemes = IdentityServerAuthenticationDefaults.AuthenticationScheme, Policy = AuthenticationPolicy.Student)]
Note: See TracChangeset for help on using the changeset viewer.