Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding linter for consistent code style #20

Closed
wants to merge 3 commits into from
Closed

Adding linter for consistent code style #20

wants to merge 3 commits into from

Conversation

nh602
Copy link
Collaborator

@nh602 nh602 commented Nov 13, 2023

Added eslint to both frontend / backend. Closes #15

// Logs in vendor
router.post('/login', getVendor, authenticateVendor, sendSuccessResponse);

// Fetches all vendors
router.get('/', getVendors, sendSuccessResponse);

// Fetches a single vendor by ID
router.get('/:vendor_id', getVendorById, sendSuccessResponse);
router.get('/:vendorId', getVendorById, sendSuccessResponse);

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
@nh602 nh602 closed this Nov 13, 2023
@nh602 nh602 deleted the linter branch November 13, 2023 23:22
@nh602 nh602 restored the linter branch November 14, 2023 00:10
@nh602 nh602 deleted the linter branch January 24, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add linter to project
1 participant