This commit is contained in:
董海洋
2026-05-26 09:18:48 +08:00
parent 12b582ec64
commit ff40282dc1
19 changed files with 703 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
const Router = require('koa-router')
const pointsGoodsController = require('../controllers/points-goods')
const router = new Router()
router.get('/', pointsGoodsController.getPointsGoods)
router.get('/:id', pointsGoodsController.getPointsGoodsById)
router.post('/', pointsGoodsController.createPointsGoods)
router.post('/exchange', pointsGoodsController.exchangePointsGoods)
router.put('/:id', pointsGoodsController.updatePointsGoods)
router.delete('/:id', pointsGoodsController.deletePointsGoods)
module.exports = router.routes()