Changes in src/FinkiChattery/FinkiChattery.Api/Controllers/v1/AnswersController.cs [9df3069:cbdbb49]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Api/Controllers/v1/AnswersController.cs
r9df3069 rcbdbb49 32 32 } 33 33 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 42 34 [HttpPut("{answerUid:Guid}/correct")] 43 35 [Authorize(AuthenticationSchemes = IdentityServerAuthenticationDefaults.AuthenticationScheme, Policy = AuthenticationPolicy.Student)]
Note:
See TracChangeset
for help on using the changeset viewer.