garvitcpp commited on
Commit
c1dde32
·
verified ·
1 Parent(s): eba9fd4

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +2 -1
app/main.py CHANGED
@@ -44,8 +44,9 @@ async def startup_event():
44
 
45
  # Health check endpoint
46
  @app.get("/health")
 
47
  async def health_check():
48
- """Health check endpoint for monitoring services"""
49
  return {
50
  "status": "healthy",
51
  "timestamp": datetime.utcnow().isoformat(),
 
44
 
45
  # Health check endpoint
46
  @app.get("/health")
47
+ @app.head("/health")
48
  async def health_check():
49
+ """Health check endpoint for monitoring services (GET and HEAD)"""
50
  return {
51
  "status": "healthy",
52
  "timestamp": datetime.utcnow().isoformat(),