diff options
| author | maksJopek <72977266+maksJopek@users.noreply.github.com> | 2021-04-05 00:30:46 +0200 |
|---|---|---|
| committer | maksJopek <72977266+maksJopek@users.noreply.github.com> | 2021-04-05 00:30:46 +0200 |
| commit | d928eab3ecefbf778f1cadece9beac010dc42332 (patch) | |
| tree | 87722460e8164205a6ec4b381632cfe50195d6f9 /backend/ts/helpers.ts | |
| parent | 292257d627bd1dfeafd772ac6457e2f54c2b73ba (diff) | |
| download | fia-d928eab3ecefbf778f1cadece9beac010dc42332.tar.gz fia-d928eab3ecefbf778f1cadece9beac010dc42332.tar.zst fia-d928eab3ecefbf778f1cadece9beac010dc42332.zip | |
Small step in good direction
Diffstat (limited to 'backend/ts/helpers.ts')
| -rw-r--r-- | backend/ts/helpers.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/backend/ts/helpers.ts b/backend/ts/helpers.ts deleted file mode 100644 index 984ce2d..0000000 --- a/backend/ts/helpers.ts +++ /dev/null @@ -1,18 +0,0 @@ -import fetch from "node-fetch"; - -export async function makeQuery (query: string, params: Array<string>): Promise<string> { - return await ( - await fetch("https://jopek.eu/maks/szkola/apkKli/fiaFiles/fia.php", { - method: "POST", - headers: { - Accept: "application/json", - "Content-Type": "application/json" - }, - body: JSON.stringify({ - apiKey: process.env.API_KEY, - stmt: query, - params: params - }) - }) - ).text(); -}
\ No newline at end of file |
