Update index.js
Browse files
index.js
CHANGED
@@ -208,7 +208,7 @@ app.get("/runtime", async (req, res) => {
|
|
208 |
})
|
209 |
|
210 |
|
211 |
-
app.post('/api/v2/generate-key', async (req, res) => {
|
212 |
try {
|
213 |
const newKey = generateAkenoKey();
|
214 |
const userIdNumber = Number(req.query.user_id);
|
@@ -250,7 +250,7 @@ app.post('/api/v2/generate-key', async (req, res) => {
|
|
250 |
}
|
251 |
});
|
252 |
|
253 |
-
app.post("/api/v1/revoked-key", async (req, res) => {
|
254 |
const dbClient = new Database("AkenoXJs");
|
255 |
const collection = dbClient.collection("api_keys");
|
256 |
|
@@ -300,7 +300,7 @@ app.post("/api/v1/revoked-key", async (req, res) => {
|
|
300 |
});
|
301 |
|
302 |
|
303 |
-
app.post("/api/v1/api-key-unban", async (req, res) => {
|
304 |
const dbClient = new Database("AkenoXJs");
|
305 |
const collection = dbClient.collection("api_keys");
|
306 |
|
@@ -353,7 +353,7 @@ app.post("/api/v1/api-key-unban", async (req, res) => {
|
|
353 |
}
|
354 |
});
|
355 |
|
356 |
-
app.get("/api/v1/apikey-banlist", async (req, res) => {
|
357 |
const dbClient = new Database("AkenoXJs");
|
358 |
const collection = dbClient.collection("api_keys");
|
359 |
|
@@ -376,7 +376,7 @@ app.get("/api/v1/apikey-banlist", async (req, res) => {
|
|
376 |
}
|
377 |
});
|
378 |
|
379 |
-
app.post("/api/v1/api-key-ban", async (req, res) => {
|
380 |
const dbClient = new Database("AkenoXJs");
|
381 |
const collection = dbClient.collection("api_keys");
|
382 |
|
@@ -433,7 +433,7 @@ app.post("/api/v1/api-key-ban", async (req, res) => {
|
|
433 |
}
|
434 |
});
|
435 |
|
436 |
-
app.post('/api/v1/generate-key', async (req, res) => {
|
437 |
const dbClient = new Database("AkenoXJs");
|
438 |
const collection = dbClient.collection('api_keys');
|
439 |
try {
|
|
|
208 |
})
|
209 |
|
210 |
|
211 |
+
app.post('/api/v2/key/generate-key', async (req, res) => {
|
212 |
try {
|
213 |
const newKey = generateAkenoKey();
|
214 |
const userIdNumber = Number(req.query.user_id);
|
|
|
250 |
}
|
251 |
});
|
252 |
|
253 |
+
app.post("/api/v1/key/revoked-key", async (req, res) => {
|
254 |
const dbClient = new Database("AkenoXJs");
|
255 |
const collection = dbClient.collection("api_keys");
|
256 |
|
|
|
300 |
});
|
301 |
|
302 |
|
303 |
+
app.post("/api/v1/key/api-key-unban", async (req, res) => {
|
304 |
const dbClient = new Database("AkenoXJs");
|
305 |
const collection = dbClient.collection("api_keys");
|
306 |
|
|
|
353 |
}
|
354 |
});
|
355 |
|
356 |
+
app.get("/api/v1/key/apikey-banlist", async (req, res) => {
|
357 |
const dbClient = new Database("AkenoXJs");
|
358 |
const collection = dbClient.collection("api_keys");
|
359 |
|
|
|
376 |
}
|
377 |
});
|
378 |
|
379 |
+
app.post("/api/v1/key/api-key-ban", async (req, res) => {
|
380 |
const dbClient = new Database("AkenoXJs");
|
381 |
const collection = dbClient.collection("api_keys");
|
382 |
|
|
|
433 |
}
|
434 |
});
|
435 |
|
436 |
+
app.post('/api/v1/key/generate-key', async (req, res) => {
|
437 |
const dbClient = new Database("AkenoXJs");
|
438 |
const collection = dbClient.collection('api_keys');
|
439 |
try {
|