mirror of
https://github.com/sphildreth/roadie
synced 2024-12-04 01:49:13 +00:00
27 lines
No EOL
958 B
C#
27 lines
No EOL
958 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Logging;
|
|
using Roadie.Api.Services;
|
|
using Roadie.Library.Caching;
|
|
using Roadie.Library.Identity;
|
|
|
|
namespace Roadie.Api.Controllers
|
|
{
|
|
[Produces("application/json")]
|
|
[Route("subsonic")]
|
|
[ApiController]
|
|
[Authorize]
|
|
public class SubsonicController : EntityControllerBase
|
|
{
|
|
private ISubsonicService SubsonicService { get; }
|
|
|
|
public SubsonicController(ISubsonicService subsonicService, ILoggerFactory logger, ICacheManager cacheManager, IConfiguration configuration, UserManager<ApplicationUser> userManager)
|
|
: base(cacheManager, configuration, userManager)
|
|
{
|
|
this._logger = logger.CreateLogger("RoadieApi.Controllers.SubsonicController");
|
|
this.SubsonicService = subsonicService;
|
|
}
|
|
}
|
|
} |