API更新
This commit is contained in:
@@ -6,9 +6,9 @@ const router = new Router()
|
||||
|
||||
router.get('/', pointsGoodsController.getPointsGoods)
|
||||
router.get('/:id', pointsGoodsController.getPointsGoodsById)
|
||||
router.post('/', requireAdminAuth(), pointsGoodsController.createPointsGoods)
|
||||
router.put('/:id', requireAdminAuth(), pointsGoodsController.updatePointsGoods)
|
||||
router.delete('/:id', requireAdminAuth(), pointsGoodsController.deletePointsGoods)
|
||||
router.post('/', requireStaffAuth(), pointsGoodsController.createPointsGoods)
|
||||
router.put('/:id', requireStaffAuth(), pointsGoodsController.updatePointsGoods)
|
||||
router.delete('/:id', requireStaffAuth(), pointsGoodsController.deletePointsGoods)
|
||||
router.post('/exchange', requireAuth(), pointsGoodsController.exchangePointsGoods)
|
||||
|
||||
module.exports = router.routes()
|
||||
|
||||
Reference in New Issue
Block a user