28 lines
624 B
Python
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
|
|
}
|
|
} |