Merge branch 'BATON-SEC-007-backend_dev'
This commit is contained in:
commit
205cc8037c
3 changed files with 13 additions and 15 deletions
|
|
@ -4,7 +4,6 @@ import asyncio
|
|||
import hashlib
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from contextlib import asynccontextmanager
|
||||
from datetime import datetime, timezone
|
||||
from typing import Any
|
||||
|
|
@ -113,7 +112,7 @@ app.add_middleware(
|
|||
@app.get("/health")
|
||||
@app.get("/api/health")
|
||||
async def health() -> dict[str, Any]:
|
||||
return {"status": "ok", "timestamp": int(time.time())}
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
@app.post("/api/register", response_model=RegisterResponse)
|
||||
|
|
@ -153,7 +152,7 @@ async def signal(body: SignalRequest, _: None = Depends(rate_limit_signal)) -> S
|
|||
f"⏰ {ts.strftime('%H:%M:%S')} UTC\n"
|
||||
f"{geo_info}"
|
||||
)
|
||||
await telegram.send_message(text)
|
||||
asyncio.create_task(telegram.send_message(text))
|
||||
|
||||
return SignalResponse(status="ok", signal_id=signal_id)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue