new api
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user