don't look at me

This commit is contained in:
Fishandchips321 2025-12-24 18:23:06 +00:00
parent e9f444e5b4
commit cedbad8fba
56 changed files with 1111 additions and 294 deletions

View file

@ -0,0 +1,51 @@
using JellyGlass.Models;
using JellyGlass.Services;
using Microsoft.AspNetCore.Mvc;
namespace JellyGlass.Controllers;
[ApiController]
[Route("/api/[controller]")]
public class LibraryController : ControllerBase
{
private ILogger<LibraryController> _logger;
private ILibraryService _service;
public LibraryController(ILogger<LibraryController> logger, ILibraryService service)
{
_logger = logger;
_service = service;
}
[HttpGet()]
public async Task<IActionResult> GetLibrares()
{
var libraries = await _service.GetLibraries();
return Ok(libraries);
}
[HttpGet("{libraryName}")]
public async Task<IActionResult> GetLibraryItems([FromRoute] string libraryName)
{
throw new NotImplementedException();
}
// [HttpGet("{libraryName}/Item/{itemName}")]
// public async Task<IActionResult> GetLibraryItem([FromRoute] string libraryName, string itemName)
// {
// }
// [HttpGet("TvShows/{seriesName}")]
// public async Task<IActionResult> GetSeasonsForTvSeries([FromRoute] string seriesName)
// {
// }
// [HttpGet("TvShows/{seriesName}/Season/{seasonName}")]
// public async Task<IActionResult> GetEpisodesForTvSeriesSeason([FromRoute] string seriesName, string seasonName)
// {
// }
}