full app
This commit is contained in:
21
routes/panel/ads/index.js
Normal file
21
routes/panel/ads/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const express = require('express')
|
||||
const {
|
||||
listAds,
|
||||
getAdDetailPanel,
|
||||
listPricingRules,
|
||||
createPricingRule,
|
||||
updatePricingRule,
|
||||
deletePricingRule
|
||||
} = require('../../../controllers/panel/ads/adsPanelController')
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
router.get('/pricing', listPricingRules)
|
||||
router.post('/pricing', createPricingRule)
|
||||
router.patch('/pricing/:id', updatePricingRule)
|
||||
router.delete('/pricing/:id', deletePricingRule)
|
||||
|
||||
router.get('/', listAds)
|
||||
router.get('/:id', getAdDetailPanel)
|
||||
|
||||
module.exports = router
|
||||
Reference in New Issue
Block a user