mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 20:46:23 +03:00
16 lines
327 B
Python
16 lines
327 B
Python
import json
|
|
import requests
|
|
|
|
with open("textsouls/config.json") as config_file:
|
|
config_data = json.load(config_file)
|
|
|
|
|
|
class Backend:
|
|
base_url = config_data["backend_settings"]["base_url"]
|
|
|
|
def post(self, relative_url, data):
|
|
requests.post(f"{self.base_url}{relative_url}", json=data)
|
|
|
|
|
|
backend = Backend()
|