fabriesapi-saygl6/endpoints/tHashad.get.py
2025-04-10 16:08:48 +00:00

12 lines
328 B
Python

Here's the FastAPI endpoint for the GET /tHashad route:
from fastapi import APIRouter, status
from typing import List
router = APIRouter()
@router.get("/tHashad", status_code=status.HTTP_200_OK, response_model=List[MovieSchema])
async def get_movies():
"""Get all movies"""
movies = get_all_movies()
return movies