const express = require('express')
const router = express.Router()

const instrumentMappingsController = require('../../controllers').instrumentMappings

router.get('/:id', instrumentMappingsController.findById)
router.put('/:id', instrumentMappingsController.update)
router.delete('/:id', instrumentMappingsController.destroy)

module.exports = router

const express = require('express')
const router = express.Router()

const {InstrumentMapping} = require('../../models/index')

const {
  instrumentMappingDestroy,
  instrumentMappingFindById,
  instrumentMappingUpdate,
  mappingSend
} = require('../../middlewares')

router.get('/:id', instrumentMappingFindById(InstrumentMapping), mappingSend)
router.put('/:id', instrumentMappingUpdate(InstrumentMapping), mappingSend)
router.delete('/:id', instrumentMappingDestroy(InstrumentMapping), mappingSend)

module.exports = router

Update mapping route declarations using newly created middlewares.
[Server][Router] Update mapping route declarations using newly created middlewares.
