aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib.ts b/src/lib.ts
index ec25c11..be3b6d6 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -26,11 +26,10 @@ export class TolNode {
export type TolMap = Map<string, TolNode>;
// For server requests
-const SERVER_URL = 'http://localhost:8000'
-export async function getServerResponse(path: string, params: string){
+const SERVER_URL = 'http://localhost:8000/cgi-bin/data.py'
+export async function getServerResponse(params: string){
// Construct URL
let url = new URL(SERVER_URL);
- url.pathname = path;
url.search = params;
// Query server
let responseObj;