feat: Add GET /tHashad endpoint

This commit is contained in:
Backend IM Bot 2025-04-10 16:08:48 +00:00
parent 76829b4c08
commit 7da19cb3e0

View File

@ -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