feat: Add GET /tHashad endpoint
This commit is contained in:
parent
76829b4c08
commit
7da19cb3e0
@ -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
|
Loading…
x
Reference in New Issue
Block a user