Register all active platform services and base features in core DB so admin can manage them, add delivery/hospitality/sports-center backend phases, update apps catalog and production deploy tooling. Co-authored-by: Cursor <cursoragent@cursor.com>
73 lines
2.2 KiB
Python
73 lines
2.2 KiB
Python
from fastapi import APIRouter
|
|
|
|
from app import __version__
|
|
from app.core.config import settings
|
|
from app.models.types import BundleKey, VenueFormat
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
async def health_check():
|
|
return {
|
|
"status": "ok",
|
|
"service": settings.service_name,
|
|
"version": __version__,
|
|
}
|
|
|
|
|
|
@router.get("/capabilities")
|
|
async def capabilities():
|
|
return {
|
|
"service": settings.service_name,
|
|
"version": __version__,
|
|
"phase": "12.8",
|
|
"product": "Torbat Food",
|
|
"platform": "Hospitality Platform",
|
|
"features": {
|
|
"foundation": True,
|
|
"feature_based_architecture": True,
|
|
"bundle_based_licensing": True,
|
|
"capability_discovery": True,
|
|
"feature_toggle": True,
|
|
"digital_menu_shell": True,
|
|
"digital_menu_catalog": True,
|
|
"table_service_shell": True,
|
|
"qr_menu": True,
|
|
"qr_ordering": True,
|
|
"table_service": True,
|
|
"reservation": True,
|
|
"pos_lite": True,
|
|
"pos_pro": True,
|
|
"kitchen": True,
|
|
"pos_engine": False,
|
|
"kitchen_engine": True,
|
|
"ordering_engine": False,
|
|
"reservation_engine": False,
|
|
"delivery_integration": True,
|
|
"accounting_integration": True,
|
|
"crm_integration": True,
|
|
"loyalty_integration": True,
|
|
"communication_integration": True,
|
|
"website_integration": True,
|
|
"analytics": True,
|
|
"ai": False,
|
|
},
|
|
"venue_formats": [item.value for item in VenueFormat],
|
|
"bundles": [item.value for item in BundleKey],
|
|
"independence": {
|
|
"standalone": True,
|
|
"superapp": True,
|
|
"integrations": [
|
|
"accounting",
|
|
"crm",
|
|
"loyalty",
|
|
"communication",
|
|
"delivery",
|
|
"website_builder",
|
|
"ai",
|
|
],
|
|
"integration_mode": "api_and_events_only",
|
|
},
|
|
}
|