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,20 @@
const express = require('express')
const blockCheck = require('../../../middlewares/blockCheck')
const {
getWalletSummary,
getWalletTransactions,
requestWithdrawal,
initiateWalletCharge,
handleWalletChargeCallback
} = require('../../../controllers/application/wallet/walletController')
const router = express.Router()
router.get('/summary', [blockCheck], getWalletSummary)
router.get('/transactions', [blockCheck], getWalletTransactions)
router.post('/withdraw', [blockCheck], requestWithdrawal)
router.post('/charge/initiate', [blockCheck], initiateWalletCharge)
// ZarinPal calls this directly (browser redirect) — no Authorization header available
router.get('/charge/callback', handleWalletChargeCallback)
module.exports = router