File size: 618 Bytes
c840ad0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""Root router for API information and health checks."""
from fastapi import APIRouter

router = APIRouter(tags=["Root"])


@router.get("/")
async def root():
    """Root endpoint providing API information."""
    return {
        "message": "PromptAR Backend API",
        "version": "1.0.0",
        "endpoints": {
            "generate": "POST /api/models/generate",
            "download": "GET /api/models/download/{model_id}"
        }
    }


@router.get("/health")
async def health_check():
    """Health check endpoint."""
    return {
        "status": "healthy",
        "service": "PromptAR Backend"
    }