deploy-trig
This commit is contained in:
@@ -5,9 +5,10 @@ import aiohttp
|
||||
from settings import API_BASE
|
||||
|
||||
headers = {"Content-Type": "application/json"}
|
||||
api_base = API_BASE or "https://core.discours.io"
|
||||
|
||||
|
||||
# TODO: rewrite to orm usage?
|
||||
|
||||
async def _request_endpoint(query_name, body) -> Any:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.post(API_BASE, headers=headers, json=body) as response:
|
||||
|
Reference in New Issue
Block a user