mayowa-1gvimy/endpoints/gospel.get.py
2025-03-25 05:41:03 +00:00

28 lines
624 B
Python

from fastapi import APIRouter, HTTPException
gospel_entries = [] # In-memory storage
router = APIRouter()
@router.get("/gospel")
async def get_gospel():
"""Demo gospel endpoint"""
return {
"message": "Gospel entries retrieved",
"entries": [
{
"id": "g1",
"title": "Matthew",
"chapters": 28
},
{
"id": "g2",
"title": "Mark",
"chapters": 16
}
],
"features": {
"rate_limit": 100,
"expires_in": 3600
}
}