Skip to content

Commit

Permalink
Merge pull request #13 from RectiFlex/alert-autofix-5
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 5: Missing rate limiting
  • Loading branch information
RectiFlex authored Nov 29, 2024
2 parents 7636ad3 + 975bcb6 commit daf0c9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ app.delete('/api/ideas/:id', limiter, authenticate, async (req, res) => {

// Documents endpoints
app.post('/api/documents',
limiter,
authenticate,
body('type').notEmpty(),
body('title').notEmpty(),
Expand Down

0 comments on commit daf0c9c

Please sign in to comment.