feat: Update endpoint computer-time

This commit is contained in:
Backend IM Bot 2025-03-11 13:34:13 +00:00
parent 62e6f6f0ef
commit 8aa6f11769

View File

@ -0,0 +1,12 @@
from datetime import datetime
from fastapi import APIRouter
router = APIRouter()
@router.post("/computer-time", status_code=200)
async def get_server_time():
"""
Returns the current server time
"""
now = datetime.now()
return {"server_time": now.isoformat()}