don't look at me
This commit is contained in:
parent
e9f444e5b4
commit
cedbad8fba
56 changed files with 1111 additions and 294 deletions
51
backend/src/Controllers/LibraryController.cs
Normal file
51
backend/src/Controllers/LibraryController.cs
Normal 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)
|
||||
// {
|
||||
|
||||
// }
|
||||
}
|
||||
0
backend/src/Controllers/MoviesController.cs
Normal file
0
backend/src/Controllers/MoviesController.cs
Normal file
0
backend/src/Controllers/TvShowsController.cs
Normal file
0
backend/src/Controllers/TvShowsController.cs
Normal file
Loading…
Add table
Add a link
Reference in a new issue