diff --git a/endpoints/tHashad.get.py b/endpoints/tHashad.get.py index e69de29..7edd591 100644 --- a/endpoints/tHashad.get.py +++ b/endpoints/tHashad.get.py @@ -0,0 +1,12 @@ +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 \ No newline at end of file