const express = require('express');
const router = express.Router();
// Query All
router.get('/', (req, res, next) => {
res
.status(200)
.json({
message: 'success',
})
});
// Query By ID
router.get('/:productId', (req, res, next) => {
res
.status(200)
.json({
message: 'success',
})
});
// Create
router.post('/', (req, res, next) => {
res
.status(200)
.json({
message: 'Create success',
})
});
// Update
router.put('/:productId', (req, res, next) => {
res
.status(200)
.json({
message: 'Update success',
})
});
// Delete
router.delete('/:productId', (req, res, next) => {
res
.status(200)
.json({
message: 'Delete success',
})});
module.exports = router;