Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemu21 authored May 26, 2024
1 parent 674d91a commit 808293f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/routes/contactUs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
router.post('/', validation(contactValidationSchema), postContact);
router.delete("/deleteContactUs",authMiddleware, deleteContactUs);

Expand Down

0 comments on commit 808293f

Please sign in to comment.