made changes in supplier routes

master
varun 2 years ago
parent 9dabeb5f4e
commit 3f8db59d33

@ -53,6 +53,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
preHandler: fastify.auth([fastify.authenticate]),
handler: validationHandler.getConnectedSuppliers,
});
@ -78,6 +79,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
preHandler: fastify.auth([fastify.authenticate]),
handler: validationHandler.getPendingSuppliers,
});
@ -102,6 +104,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
preHandler: fastify.auth([fastify.authenticate]),
handler: validationHandler.getRejectSuppliers,
});
@ -128,6 +131,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
preHandler: fastify.auth([fastify.authenticate]),
handler: validationHandler.getRejectCustomers,
});
@ -153,6 +157,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
preHandler: fastify.auth([fastify.authenticate]),
handler: validationHandler.getPendingCustomers,
});
@ -179,6 +184,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
preHandler: fastify.auth([fastify.authenticate]),
handler: validationHandler.getconnectedCustomers,
});

Loading…
Cancel
Save