Added login functionality for tech BOD-95

This commit is contained in:
Patrick Fic
2020-06-29 15:24:04 -07:00
parent 2edfadce3a
commit 0e9cc9620b
27 changed files with 552 additions and 115 deletions

View File

@@ -84,6 +84,10 @@ app.post("/notifications/send", fb.sendNotification);
var stripe = require("./server/stripe/payment");
app.post("/stripe/payment", stripe.payment);
//Tech Console
var tech = require("./server/tech/tech");
app.post("/tech/login", tech.techLogin);
//Serve React App if in Production
if (process.env.NODE_ENV === "production") {
app.use(express.static(path.join(__dirname, "client/build")));