|
|
|
@ -3,7 +3,8 @@ const router = express.Router()
|
|
|
|
|
const {
|
|
|
|
|
getExpressServices,
|
|
|
|
|
addExpressServices,
|
|
|
|
|
updateExpressServices
|
|
|
|
|
updateExpressServices,
|
|
|
|
|
deleteExpressServices
|
|
|
|
|
} = require("../services/expressService")
|
|
|
|
|
const {
|
|
|
|
|
formatResponse
|
|
|
|
@ -24,4 +25,9 @@ router.put("/", async function (req, res, next) {
|
|
|
|
|
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
|