This commit is contained in:
payacom
2026-08-31 20:45:41 +03:30
parent fa9f23c61d
commit 3f416a7a60
367 changed files with 621895 additions and 6443 deletions

View File

@@ -0,0 +1,23 @@
const express = require('express')
const blockCheck = require('../../../middlewares/blockCheck')
const {
initiateGiftPayment,
handleGiftPaymentCallback,
getMyGifts,
replyToGift,
initiateChatGift,
handleChatGiftPaymentCallback,
openGift
} = require('../../../controllers/application/gifts/giftController')
const router = express.Router()
router.post('/initiate', [blockCheck], initiateGiftPayment)
router.get('/payment-callback', handleGiftPaymentCallback)
router.get('/', [blockCheck], getMyGifts)
router.post('/reply', [blockCheck], replyToGift)
router.post('/chat/initiate', [blockCheck], initiateChatGift)
router.get('/chat/payment-callback', handleChatGiftPaymentCallback)
router.post('/:id/open', [blockCheck], openGift)
module.exports = router