From 880320d9b8b46586597490c119e6443960f61df5 Mon Sep 17 00:00:00 2001 From: "kam (from the studio)" Date: Tue, 17 Jan 2023 15:21:08 +0100 Subject: [PATCH] wildcard --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 77639ff..d77058e 100644 --- a/server.js +++ b/server.js @@ -16,6 +16,9 @@ const routes = (app) => { app.get("/destination", (req, res) => { res.sendFile("destination.html", { root: __dirname }); }); + app.get("/*", (req, res) => { + res.sendFile(req.url, { root: "public" }); + }); return app; };