mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-26 17:42:34 -04:00
Adding Health controller (#1480)
* Adding Health controller - Added: Added API endpoint for a health check to streamline docker healthy status. * review comment fixes
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace API.Controllers;
|
||||
|
||||
[AllowAnonymous]
|
||||
public class HealthController : BaseApiController
|
||||
{
|
||||
|
||||
[HttpGet()]
|
||||
public ActionResult GetHealth()
|
||||
{
|
||||
return Ok("Ok");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user