|
|
@ -3,7 +3,8 @@ const router = express.Router()
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
getExpressServices,
|
|
|
|
getExpressServices,
|
|
|
|
addExpressServices,
|
|
|
|
addExpressServices,
|
|
|
|
updateExpressServices
|
|
|
|
updateExpressServices,
|
|
|
|
|
|
|
|
deleteExpressServices
|
|
|
|
} = require("../services/expressService")
|
|
|
|
} = require("../services/expressService")
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
formatResponse
|
|
|
|
formatResponse
|
|
|
@ -24,4 +25,9 @@ router.put("/", async function (req, res, next) {
|
|
|
|
res.send(formatResponse(0, "", data))
|
|
|
|
res.send(formatResponse(0, "", data))
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
router.delete("/", async function (req, res, next) {
|
|
|
|
|
|
|
|
const data = await deleteExpressServices(req.body)
|
|
|
|
|
|
|
|
res.send(formatResponse(0, "", data))
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = router
|
|
|
|
module.exports = router
|