diff --git a/src/app.js b/src/app.js index 0f12117..1aba966 100644 --- a/src/app.js +++ b/src/app.js @@ -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);