full
This commit is contained in:
23
routes/application/gifts/index.js
Normal file
23
routes/application/gifts/index.js
Normal 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
|
||||
Reference in New Issue
Block a user