reels
This commit is contained in:
@@ -21,11 +21,12 @@ const {
|
||||
handleBookingPaymentCallback
|
||||
} = require('../../../controllers/application/bookings/bookingPaymentController')
|
||||
const blockCheck = require('../../../middlewares/blockCheck')
|
||||
const requireSubUserPermission = require('../../../middlewares/requireSubUserPermission')
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
// --- Booking-config wizard (provider setup) ---
|
||||
router.post('/draft', [blockCheck], createDraftBookingConfig)
|
||||
router.post('/draft', [blockCheck], requireSubUserPermission('bookings'), createDraftBookingConfig)
|
||||
router.get('/mine', [blockCheck], getMyBookingConfigs)
|
||||
|
||||
// --- Reservations (buyer booking + provider's received bookings) ---
|
||||
@@ -42,9 +43,9 @@ router.get('/payment-callback/web', handleBookingPaymentCallback)
|
||||
|
||||
// --- Booking-config wizard (continued) ---
|
||||
router.get('/:id', [blockCheck], getBookingConfigById)
|
||||
router.patch('/:id/services', [blockCheck], updateBookingConfigServices)
|
||||
router.patch('/:id/schedule', [blockCheck], updateBookingConfigSchedule)
|
||||
router.patch('/:id/status', [blockCheck], updateBookingConfigStatus)
|
||||
router.post('/:id/submit', [blockCheck], submitBookingConfig)
|
||||
router.patch('/:id/services', [blockCheck], requireSubUserPermission('bookings'), updateBookingConfigServices)
|
||||
router.patch('/:id/schedule', [blockCheck], requireSubUserPermission('bookings'), updateBookingConfigSchedule)
|
||||
router.patch('/:id/status', [blockCheck], requireSubUserPermission('bookings'), updateBookingConfigStatus)
|
||||
router.post('/:id/submit', [blockCheck], requireSubUserPermission('bookings'), submitBookingConfig)
|
||||
|
||||
module.exports = router
|
||||
|
||||
Reference in New Issue
Block a user