mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-10 03:55:45 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
21 lines
482 B
C#
21 lines
482 B
C#
using Kavita.API.Attributes;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Kavita.Server.Controllers;
|
|
|
|
[AllowAnonymous]
|
|
[SkipDeviceTracking]
|
|
public class HealthController : BaseApiController
|
|
{
|
|
/// <summary>
|
|
/// No-op method that just returns Ok. Used for health checks in Docker containers.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ActionResult<string> GetHealth()
|
|
{
|
|
return Ok("Ok");
|
|
}
|
|
}
|