Added admin dashboard project BOD-194

This commit is contained in:
Patrick Fic
2020-07-23 16:09:21 -07:00
parent acd8984d5b
commit 4a5bc50d40
23 changed files with 12342 additions and 2 deletions

View File

@@ -99,6 +99,10 @@ if (process.env.NODE_ENV === "production") {
res.sendFile(path.resolve(__dirname, "..", "build", "service-worker.js"));
});
app.get("/admin/*", function (req, res) {
res.sendFile(path.join(__dirname, "admin/build", "index.html"));
});
app.get("*", function (req, res) {
res.sendFile(path.join(__dirname, "client/build", "index.html"));
});