Update README.md

This commit is contained in:
2026-03-23 00:18:34 -07:00
parent c698879cda
commit 1dbeb724fc
7 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Jellyfin.Plugin.NewReleases.Models;
using Jellyfin.Plugin.NewReleases.Services;
using MediaBrowser.Controller.Library;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Plugin.NewReleases.Api;
[ApiController]
[Route("Plugins/NewReleases")]
public sealed class NewReleasesController : ControllerBase
{
private readonly NewReleasesService _newReleasesService;
public NewReleasesController(ILibraryManager libraryManager)
{
_newReleasesService = new NewReleasesService(libraryManager);
}
[HttpGet("Movies")]
[ProducesResponseType(typeof(NewReleasesResponse), StatusCodes.Status200OK)]
public ActionResult<NewReleasesResponse> GetNewlyReleasedMovies()
{
var response = _newReleasesService.GetNewlyReleasedMovies();
return Ok(response);
}
}