From 193f495e00dd96efcaeea2016fd6531d7bceb40b Mon Sep 17 00:00:00 2001 From: Alan O'Cull Date: Sat, 2 Dec 2023 19:52:49 -0500 Subject: [PATCH] AAAAAAA --- package.json | 2 +- src/client/client.ts | 2 +- src/server/server.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7731eaf..e0a683e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "main": "index.js", "scripts": { "all": "npm run clean && npm run build && npm run start", - "clean": "rm -rf build/", + "clean": "rm -rf build/ && rm -rf dist/", "prebuild": "mkdir -p dist/public/ && cp -R assets/* dist/public/", "build": "tsc && webpack --config ./webpack/development.js", "rebuild": "npm run clean && npm run build", diff --git a/src/client/client.ts b/src/client/client.ts index 95b1d73..40fe368 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -2,7 +2,7 @@ import { Mesh, MeshImport } from "./mesh"; const request_mesh = (filename: string) => { let request = new XMLHttpRequest(); - request.open('GET', `localhost:${3000}/mesh/${filename}`, false); + request.open('GET', `http://localho.st:${3000}/mesh/${filename}`, false); request.send(null); return request.responseText; } diff --git a/src/server/server.ts b/src/server/server.ts index 34b3eac..abb43d3 100644 --- a/src/server/server.ts +++ b/src/server/server.ts @@ -9,6 +9,9 @@ const app: Express = express(); const port = process.env.PORT; app.get('/', (req: Request, res: Response) => { + console.log(req.url); + console.log(req.body); + console.log(req.query); const last = req.url.lastIndexOf('/'); const mesh_name = req.url.substring(last + 1); const filepath = `assets/pages/${mesh_name}`;