fix: spelling errors in API routes

This commit is contained in:
Leon Xu
2022-05-07 15:00:02 -07:00
parent 4831ae523c
commit 8d00259af5
+3 -2
View File
@@ -11,8 +11,9 @@ app.use(cors({ origin: true }));
app.use(express.json());
// API Routes
app.post("/paymens/create", async (req, res) => {
const total = request.query.total;
app.post("/payments/create", async (req, res) => {
const total = req.query.total;
const paymentIntent = await stripe.paymentIntents.create({
amount: total, // subunits of the currency
currency: "usd",