mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-18 05:28:27 +03:00
Add vote rate limit to views as well
This commit is contained in:
committed by
GitHub
parent
64f93cec65
commit
73b7332639
@@ -66,8 +66,8 @@ app.get('/api/voteOnSponsorTime', voteRateLimitMiddleware, voteOnSponsorTime.end
|
|||||||
app.post('/api/voteOnSponsorTime', voteRateLimitMiddleware, voteOnSponsorTime.endpoint);
|
app.post('/api/voteOnSponsorTime', voteRateLimitMiddleware, voteOnSponsorTime.endpoint);
|
||||||
|
|
||||||
//Endpoint when a sponsorTime is used up
|
//Endpoint when a sponsorTime is used up
|
||||||
app.get('/api/viewedVideoSponsorTime', viewedVideoSponsorTime);
|
app.get('/api/viewedVideoSponsorTime', voteRateLimitMiddleware, viewedVideoSponsorTime);
|
||||||
app.post('/api/viewedVideoSponsorTime', viewedVideoSponsorTime);
|
app.post('/api/viewedVideoSponsorTime', voteRateLimitMiddleware, viewedVideoSponsorTime);
|
||||||
|
|
||||||
//To set your username for the stats view
|
//To set your username for the stats view
|
||||||
app.post('/api/setUsername', setUsername);
|
app.post('/api/setUsername', setUsername);
|
||||||
|
|||||||
Reference in New Issue
Block a user