Created
March 19, 2020 00:18
-
-
Save iitsuraj/7e677806884b5bfdba7fd24937cb1087 to your computer and use it in GitHub Desktop.
Api rate limiter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var limiter = require("../misc/rate-limit.js") | |
app.post("/create-account", limiter.createAccountLimiter, function(req, res) { | |
//... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment