feat: Update endpoint computer-time
This commit is contained in:
parent
62e6f6f0ef
commit
8aa6f11769
@ -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()}
|
Loading…
x
Reference in New Issue
Block a user