Serve ConnectForce using the server
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Manuel Thalmann 2022-12-14 10:23:53 +01:00
parent c35136c6ae
commit 07263baf6a
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B
3 changed files with 9 additions and 9 deletions

7
package-lock.json generated
View file

@ -498,9 +498,9 @@
"dev": true
},
"node_modules/@types/node": {
"version": "18.11.11",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.11.tgz",
"integrity": "sha512-KJ021B1nlQUBLopzZmPBVuGU9un7WJd/W4ya7Ih02B4Uwky5Nja0yGYav2EfYIk0RR2Q9oVhf60S2XR1BCWJ2g==",
"version": "18.11.15",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.15.tgz",
"integrity": "sha512-VkhBbVo2+2oozlkdHXLrb3zjsRkpdnaU2bXmX8Wgle3PUi569eLRaHGlgETQHR7lLL1w7GiG3h9SnePhxNDecw==",
"dev": true
},
"node_modules/@types/parse-glob": {
@ -9696,6 +9696,7 @@
},
"devDependencies": {
"@types/express": "^4.17.15",
"@types/node": "^18.11.15",
"noderel": "^1.0.13"
}
}

View file

@ -12,6 +12,7 @@
},
"devDependencies": {
"@types/express": "^4.17.15",
"@types/node": "^18.11.15",
"noderel": "^1.0.13"
}
}

View file

@ -1,13 +1,11 @@
import { join } from "path";
import { fileURLToPath } from "url";
import express from "express";
const dirname = fileURLToPath(new URL(".", import.meta.url));
const app = express();
app.use(
(request, response, next) =>
{
response.send("Hello World");
response.status(100);
});
app.use(express.static(join(dirname, "..", "..", "game", "lib", "static")));
app.use(
[