diff --git a/backend/app/routes/contactUs/index.js b/backend/app/routes/contactUs/index.js index ad6f4516..da3bcf32 100644 --- a/backend/app/routes/contactUs/index.js +++ b/backend/app/routes/contactUs/index.js @@ -6,7 +6,7 @@ const getContact = require('./get'); const deleteContactUs = require('./delete'); const { authMiddleware } = require('../../../helpers/middlewares/auth'); -router.get('/getcontactus', getContact); +router.get('/getcontactus',authMiddleware, getContact); router.post('/', validation(contactValidationSchema), postContact); router.delete("/deleteContactUs",authMiddleware, deleteContactUs);