This commit is contained in:
CHIEFSOFT\ameye
2024-10-15 20:35:52 -04:00
parent fe27875a58
commit 46437c0b40
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -5,9 +5,9 @@ const cardsControllers = require('../controller/cardsController.js');
module.exports = function(app) {
app.route('/create')
.get(cardsControllers.createCard);
.post(cardsControllers.createCard);
app.route('/activate')
.get(cardsControllers.activateCard);
.post(cardsControllers.activateCard);
// app.route('/eventSendMoney')
// .post(controller.activateCard);
+1 -1
View File
@@ -5,7 +5,7 @@ const db = require('../app/db')
const logger = require('../app/logger');
//const User = require("../app/model/cardModel.js");
const stripe = require('stripe')('sk_test_51JwvOXCMmfol61TLadZlDf2rxq6Q1IC50JITRixcbyig8T2zdqpO8HY2NEcwNHacRQKQpTf6JGh7haqUVEH0rccA00eFht1ewi');
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
var cards = {
createCard: async function (req, res, next) {