API更新

This commit is contained in:
董海洋
2026-06-04 18:43:38 +08:00
parent 89afdbec20
commit 129cf155e1
6 changed files with 17 additions and 15 deletions
+3 -3
View File
@@ -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()