Update code in endpoints/lol.get.py
This commit is contained in:
parent
b837643ab9
commit
af3a115e83
@ -0,0 +1,19 @@
|
|||||||
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
from core.database import fake_users_db
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.get("/lol")
|
||||||
|
async def lol_handler():
|
||||||
|
"""Demo lol endpoint"""
|
||||||
|
return {
|
||||||
|
"message": "LOL success",
|
||||||
|
"data": {
|
||||||
|
"expression": "😂",
|
||||||
|
"meaning": "Laugh Out Loud"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"response_type": "humor",
|
||||||
|
"intensity": "high"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user