asdf
This commit is contained in:
@@ -34,10 +34,14 @@ const userProductIdParamSchema = Joi.object({
|
||||
userProductId: Joi.number().integer().positive().required()
|
||||
});
|
||||
|
||||
const productIdParamSchema = Joi.object({
|
||||
productId: Joi.number().integer().positive().required()
|
||||
});
|
||||
|
||||
// @route GET /api/product-spreader-settings/product/:productId
|
||||
// @desc Get spreader settings for a specific product
|
||||
// @access Private
|
||||
router.get('/product/:productId', validateParams(idParamSchema), async (req, res, next) => {
|
||||
router.get('/product/:productId', validateParams(productIdParamSchema), async (req, res, next) => {
|
||||
try {
|
||||
const productId = req.params.productId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user