diff --git a/src/ReC.API/Controllers/OutResController.cs b/src/ReC.API/Controllers/OutResController.cs index eff3b6e..d4a36d1 100644 --- a/src/ReC.API/Controllers/OutResController.cs +++ b/src/ReC.API/Controllers/OutResController.cs @@ -71,6 +71,20 @@ public class OutResController(IMediator mediator, IConfiguration config) : Contr await mediator.Send(command, cancel); return NoContent(); } + + /// + /// Deletes all output results for a fake/test profile. + /// + /// A token to cancel the operation. + /// An empty response indicating success. + [HttpDelete("fake")] + [ProducesResponseType(StatusCodes.Status204NoContent)] + [ProducesResponseType(StatusCodes.Status400BadRequest)] + public async Task Delete(CancellationToken cancel) + { + await mediator.Send(new DeleteOutResCommand() { ProfileId = config.GetFakeProfileId() }, cancel); + return NoContent(); + } } ///