- Implemented SvelteKit frontend with authentication callback handling. - Created demo routes and paraglide localization functionality. - Added health check and entrypoint scripts for backend services. - Established PostgreSQL and Keycloak initialization scripts with health checks. - Introduced models for database schema using SQLAlchemy. - Configured Vite and SvelteKit for development and testing environments. - Added health check script to verify service statuses and resource usage. - Created Docker entrypoint scripts for seamless service startup.
29 lines
663 B
Python
29 lines
663 B
Python
"""
|
|
Router principal de API v1
|
|
Agrega todos los módulos de la aplicación
|
|
"""
|
|
from fastapi import APIRouter
|
|
|
|
# Importar routers de módulos
|
|
from .modules.a76.auth import router as auth_router
|
|
from .modules.a76.tenants import router as tenants_router
|
|
from .modules.a76.licenses import router as licenses_router
|
|
|
|
# Router principal
|
|
router = APIRouter()
|
|
|
|
# Registrar módulos
|
|
router.include_router(auth_router)
|
|
router.include_router(tenants_router)
|
|
router.include_router(licenses_router)
|
|
|
|
# Health check
|
|
@router.get("/status")
|
|
def status():
|
|
"""Health check de la API"""
|
|
return {
|
|
"status": "ok",
|
|
"version": "1.0.0",
|
|
"api": "v1"
|
|
}
|