-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,19 +23,19 @@ const { | |
|
||
const sendSuccessResponse = require('../middleware/successResponse'); | ||
|
||
router.get('/events/requests/:eventId', getEventRequests, sendSuccessResponse); | ||
router.get('/events/requests/:eventId', verify('admin'), getEventRequests, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.get('/events/requests', getAllEventRequests, sendSuccessResponse); | ||
router.get('/events/requests', verify('admin'), getAllEventRequests, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading This route handler performs authorization, but is not rate-limited. This route handler performs authorization, but is not rate-limited. Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.get('/violations/:vendorId', getViolations, sendSuccessResponse); | ||
router.get('/violations/:vendorId', verify('admin'), getViolations, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.get('/violations', getAllViolations, sendSuccessResponse); | ||
router.get('/violations', verify('admin'), getAllViolations, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.put('events/requests/:requestId', processEventRequest, sendSuccessResponse); | ||
router.put('events/requests/:requestId', verify('admin'), processEventRequest, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.post('/violations/:vendorId', createVendorViolation, sendSuccessResponse); | ||
router.post('/violations/:vendorId', verify('admin'), createVendorViolation, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.delete('/violations/:violationId', deleteVendorViolation, sendSuccessResponse); | ||
router.delete('/violations/:violationId', verify('admin'), deleteVendorViolation, sendSuccessResponse); | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading This route handler performs authorization Error loading related location Loading This route handler performs authorization, but is not rate-limited. This route handler performs authorization, but is not rate-limited. Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
a database access Error loading related location Loading |
||
|
||
router.post('/login', getAdminByEmail, signAdminToken, (req, res) => { | ||
res.status(200).json({status: 'success'}); | ||
|