Create new services: inventory, recipes, suppliers
This commit is contained in:
@@ -11,6 +11,7 @@ import time
|
||||
from typing import Dict, List, Callable, Any, Optional
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum
|
||||
from fastapi import APIRouter
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -160,3 +161,16 @@ class HealthChecker:
|
||||
"checks": check_results
|
||||
}
|
||||
|
||||
|
||||
# Create FastAPI router for health endpoints
|
||||
router = APIRouter()
|
||||
|
||||
@router.get("/")
|
||||
async def health_check():
|
||||
"""Basic health check endpoint"""
|
||||
return {
|
||||
"service": "service",
|
||||
"status": "healthy",
|
||||
"timestamp": time.time()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user