Added admin dashboard project BOD-194
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user