aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ts/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ts/helpers.ts')
-rw-r--r--backend/ts/helpers.ts18
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