From 7da19cb3e0d61da77e9514aadeb721993d3cb525 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Thu, 10 Apr 2025 16:08:48 +0000 Subject: [PATCH] feat: Add GET /tHashad endpoint --- endpoints/tHashad.get.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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