diff --git a/src/Jackett.Server/Controllers/HealthcheckController.cs b/src/Jackett.Server/Controllers/HealthcheckController.cs new file mode 100644 index 000000000..11fdd4862 --- /dev/null +++ b/src/Jackett.Server/Controllers/HealthcheckController.cs @@ -0,0 +1,23 @@ +using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json.Linq; + +namespace Jackett.Server.Controllers +{ + [AllowAnonymous] + [Route("health")] + public class HealthcheckController : Controller + { + [HttpGet] + [HttpHead] + public Task Health() + { + var jsonReply = new JObject + { + ["status"] = "OK" + }; + return Task.FromResult(Json(jsonReply)); + } + } +}