Compare commits

..

No commits in common. "ed66f264ff2fd899fe73948eba0af794888e9741" and "e7da5de2553c2a684cae448f87b931980442da9a" have entirely different histories.

View file

@ -15,10 +15,7 @@ const app = express.Router();
const createAccountLimiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hour window
max: 10, // start blocking after 5 requests
message: JSON.stringify({
error: true,
message: "ERROR_RATE_LIMITED"
})
message: "You are being rate limited"
});
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});
@ -214,4 +211,4 @@ app.post("/browser/token/clear", authenticateEndpoint((req, res) => {
res.sendStatus(200);
}));
module.exports = app;
module.exports = app;