Fixed example webserver

This commit is contained in:
Alexander Cerutti
2021-10-16 22:16:58 +02:00
parent 2a7770f4af
commit eb5ff92f4a

View File

@@ -9,11 +9,11 @@ export const app = express();
app.use(express.json()); app.use(express.json());
app.listen(8080, "0.0.0.0", function (request, response) { app.listen(8080, "0.0.0.0", () => {
console.log("Webserver started."); console.log("Webserver started.");
}); });
app.all("/", function (request, response) { app.all("/", function (_, response) {
response.redirect("/gen/"); response.redirect("/gen/");
}); });