20 lines
495 B
Python
20 lines
495 B
Python
from fastapi import APIRouter, Depends, HTTPException
|
|
from core.database import fake_users_db
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/api/test")
|
|
async def test_handler():
|
|
"""Demo test endpoint"""
|
|
return {
|
|
"message": "Test successful",
|
|
"data": {
|
|
"input_length": 10,
|
|
"content": "AAAAAAAAAA..."
|
|
},
|
|
"metadata": {
|
|
"endpoint": "/api/test",
|
|
"method": "POST",
|
|
"timestamp": "demo_timestamp"
|
|
}
|
|
} |