Added admin functionality.

This commit is contained in:
Patrick Fic
2022-07-26 09:33:08 -07:00
parent 0b448e043c
commit 2586393b4c
2 changed files with 64 additions and 0 deletions

View File

@@ -172,6 +172,18 @@ app.post(
fb.validateAdmin,
adm.createShop
);
app.post(
"/adm/updateshop",
fb.validateFirebaseIdToken,
fb.validateAdmin,
adm.updateShop
);
app.post(
"/adm/updatecounter",
fb.validateFirebaseIdToken,
fb.validateAdmin,
adm.updateCounter
);
//Stripe Processing
var stripe = require("./server/stripe/payment");