proj-uetff5/endpoints/afrogospel.post.py
2025-03-29 21:15:18 +00:00

15 lines
461 B
Python

from fastapi import APIRouter, status
from typing import Dict
import random
router = APIRouter()
@router.post("/afrogospel", status_code=status.HTTP_200_OK, response_model=Dict[str, str])
async def get_random_month():
months = [
"January", "February", "March", "April",
"May", "June", "July", "August",
"September", "October", "November", "December"
]
random_month = random.choice(months)
return {"month": random_month}