Update plugins/antiban.js
Browse files- plugins/antiban.js +1 -1
plugins/antiban.js
CHANGED
@@ -3,7 +3,7 @@ import { Database } from '../database/database.js';
|
|
3 |
import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
|
4 |
const AntibanRoutes = express.Router();
|
5 |
|
6 |
-
AntibanRoutes.get("/api/v1/
|
7 |
const dbClient = new Database("AkenoXJs");
|
8 |
const collection = dbClient.collection("ban_users");
|
9 |
try {
|
|
|
3 |
import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
|
4 |
const AntibanRoutes = express.Router();
|
5 |
|
6 |
+
AntibanRoutes.get("/api/v1/user/ban-user", authenticateApiKey, apiLimiter, async (req, res) => {
|
7 |
const dbClient = new Database("AkenoXJs");
|
8 |
const collection = dbClient.collection("ban_users");
|
9 |
try {
|