Add vote rate limit to views as well

This commit is contained in:
Ajay Ramachandran
2020-10-11 12:42:02 -04:00
committed by GitHub
parent 64f93cec65
commit 73b7332639

View File

@@ -66,8 +66,8 @@ app.get('/api/voteOnSponsorTime', voteRateLimitMiddleware, voteOnSponsorTime.end
app.post('/api/voteOnSponsorTime', voteRateLimitMiddleware, voteOnSponsorTime.endpoint);
//Endpoint when a sponsorTime is used up
app.get('/api/viewedVideoSponsorTime', viewedVideoSponsorTime);
app.post('/api/viewedVideoSponsorTime', viewedVideoSponsorTime);
app.get('/api/viewedVideoSponsorTime', voteRateLimitMiddleware, viewedVideoSponsorTime);
app.post('/api/viewedVideoSponsorTime', voteRateLimitMiddleware, viewedVideoSponsorTime);
//To set your username for the stats view
app.post('/api/setUsername', setUsername);