Forward /winner/:id to frontend endpoint. (w/ hash)

This commit is contained in:
2020-09-06 15:17:16 +02:00
parent a7f4f9af27
commit 4b926c9ece

View File

@@ -95,6 +95,9 @@ app.use("/subscription", subscriptionApi);
app.get("/dagens", function(req, res) {
res.redirect("/#/dagens");
});
app.get("/winner/:id", function(req, res) {
res.redirect("/#/winner/" + req.params.id);
});
app.use("/service-worker.js", function(req, res) {
res.sendFile(path.join(__dirname, "public/sw/serviceWorker.js"));