17 lines
438 B
Python
17 lines
438 B
Python
from fastapi import APIRouter, Depends, HTTPException
|
|
from core.database import fake_users_db
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/endpoint")
|
|
async def check_status():
|
|
"""Check if API is working"""
|
|
return {
|
|
"message": "API is working",
|
|
"status": "operational",
|
|
"metadata": {
|
|
"timestamp": "2024-01-01T00:00:00Z",
|
|
"version": "1.0.0",
|
|
"environment": "demo"
|
|
}
|
|
} |