feat: Update endpoint server-time

This commit is contained in:
Backend IM Bot 2025-03-11 15:26:09 +00:00
parent 045ee4af3d
commit 135b0ffa5a

View File

@ -1 +1,12 @@
i can edit and save a new endpoint
from datetime import datetime
from fastapi import APIRouter
router = APIRouter()
@router.post("/server-time", response_model=dict)
async def get_server_time():
"""
Get the current server time
"""
current_time = datetime.now()
return {"server_time": current_time.isoformat()}