mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-31 01:00:31 -05:00
25 lines
593 B
C#
25 lines
593 B
C#
using Kyoo.InternalAPI;
|
|
using Kyoo.Models;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Kyoo.Controllers
|
|
{
|
|
[Route("api/libraries")]
|
|
[ApiController]
|
|
public class LibrariesController : ControllerBase
|
|
{
|
|
private readonly ILibraryManager libraryManager;
|
|
|
|
public LibrariesController(ILibraryManager libraryManager)
|
|
{
|
|
this.libraryManager = libraryManager;
|
|
}
|
|
|
|
[HttpGet]
|
|
public IEnumerable<Library> GetLibraries()
|
|
{
|
|
return libraryManager.GetLibraries();
|
|
}
|
|
}
|
|
} |