* fix validation in new form layout * pin mediatr to last oss version * update dependencies * cleanup code in core * cleanup code in ffmpeg * cleanup code in infra * cleanup code in scanner * cleanup code in application * cleanup main code * cleanup test code * solution-wide code cleanup
16 lines
434 B
C#
16 lines
434 B
C#
using ErsatzTV.Application.Libraries;
|
|
using MediatR;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace ErsatzTV.Controllers.Api;
|
|
|
|
[ApiController]
|
|
public class LibrariesController(IMediator mediator)
|
|
{
|
|
[HttpPost("/api/libraries/{id:int}/scan")]
|
|
public async Task<IActionResult> ResetPlayout(int id) =>
|
|
await mediator.Send(new QueueLibraryScanByLibraryId(id))
|
|
? new OkResult()
|
|
: new NotFoundResult();
|
|
}
|