Files
Readarr/src/Readarr.Http/ApiInfoController.cs
Qstick 45e9d14916 New: Base API info endpoint
(cherry picked from commit 5e57ffbcf9ac3a346d4bf2b692248393215bad89)
2022-11-25 20:01:21 -06:00

24 lines
487 B
C#

using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
namespace Readarr.Http
{
public class ApiInfoController : Controller
{
public ApiInfoController()
{
}
[HttpGet("/api")]
[Produces("application/json")]
public ApiInfoResource GetApiInfo()
{
return new ApiInfoResource
{
Current = "v1",
Deprecated = new List<string>()
};
}
}
}