Update plugins/antiban.js
Browse files- plugins/antiban.js +1 -1
plugins/antiban.js
CHANGED
@@ -6,7 +6,7 @@ const AntibanRoutes = express.Router();
|
|
6 |
|
7 |
const protectedUsers = [6477856957, 1191668125, 1448273246, 1054295664, 6444305696];
|
8 |
|
9 |
-
AntibanRoutes.get("/api/v1/user/creation-date", (req, res) => {
|
10 |
const userId = Number(req.query.user_id);
|
11 |
if (!userId || isNaN(userId)) {
|
12 |
return res.status(400).json({ error: "Invalid or missing user_id" });
|
|
|
6 |
|
7 |
const protectedUsers = [6477856957, 1191668125, 1448273246, 1054295664, 6444305696];
|
8 |
|
9 |
+
AntibanRoutes.get("/api/v1/user/creation-date", authenticateApiKey, apiLimiter, (req, res) => {
|
10 |
const userId = Number(req.query.user_id);
|
11 |
if (!userId || isNaN(userId)) {
|
12 |
return res.status(400).json({ error: "Invalid or missing user_id" });
|