Update code in endpoints/chy.get.py
This commit is contained in:
parent
3cd2dfe2e9
commit
0528087335
@ -0,0 +1,12 @@
|
|||||||
|
# Entity: Scream
|
||||||
|
|
||||||
|
from fastapi import APIRouter, status
|
||||||
|
from schemas.scream import ScreamResponse
|
||||||
|
from helpers.scream_helpers import generate_scream
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.get("/chy", status_code=200, response_model=ScreamResponse)
|
||||||
|
async def get_scream():
|
||||||
|
"""Returns a screaming response"""
|
||||||
|
return generate_scream()
|
Loading…
x
Reference in New Issue
Block a user