Update code in endpoints/api/v1/endpoint.post.py
This commit is contained in:
parent
7aea43e966
commit
6343cbab11
16
endpoints/api/v1/endpoint.post.py
Normal file
16
endpoints/api/v1/endpoint.post.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
from core.database import fake_users_db
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.post("/endpoint")
|
||||||
|
async def hello_endpoint():
|
||||||
|
"""Demo hello endpoint"""
|
||||||
|
return {
|
||||||
|
"message": "Hello from Backend.im",
|
||||||
|
"status": "success",
|
||||||
|
"metadata": {
|
||||||
|
"timestamp": "2024",
|
||||||
|
"version": "1.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user