mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-04 03:27:05 -05:00 
			
		
		
		
	* Adding Health controller - Added: Added API endpoint for a health check to streamline docker healthy status. * review comment fixes
		
			
				
	
	
		
			18 lines
		
	
	
		
			308 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			308 B
		
	
	
	
		
			C#
		
	
	
	
	
	
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");
 | 
						|
    }
 | 
						|
}
 |