Files
allstarr/allstarr/Controllers/AdminController.cs
T
joshpatra 8d6dd7ccf1
Docker Build & Push / build-and-test (push) Has been cancelled
Docker Build & Push / docker (push) Has been cancelled
v1.0.3-beta.1: Refactored all large files, Fixed the cron schedule bug, hardened security, added global mapping for much more stable matchings
2026-02-16 14:59:21 -05:00

35 lines
1.0 KiB
C#

using Microsoft.AspNetCore.Mvc;
using allstarr.Filters;
namespace allstarr.Controllers;
/// <summary>
/// Legacy AdminController - All functionality has been split into specialized controllers:
/// - ConfigController: Configuration management
/// - DiagnosticsController: System diagnostics and debugging
/// - DownloadsController: Download management
/// - PlaylistController: Playlist operations
/// - JellyfinAdminController: Jellyfin-specific operations
/// - SpotifyAdminController: Spotify-specific operations
/// - LyricsController: Lyrics management
/// - MappingController: Track mapping management
/// </summary>
[ApiController]
[Route("api/admin")]
[ServiceFilter(typeof(AdminPortFilter))]
public class AdminController : ControllerBase
{
private readonly ILogger<AdminController> _logger;
public AdminController(ILogger<AdminController> logger)
{
_logger = logger;
}
[HttpGet("health")]
public IActionResult Health()
{
return Ok(new { status = "healthy", message = "Admin API is running" });
}
}