Update index.js
Browse files
index.js
CHANGED
@@ -144,6 +144,10 @@ app.get("/v1/show-key", async (req, res) => {
|
|
144 |
}
|
145 |
});
|
146 |
|
|
|
|
|
|
|
|
|
147 |
app.post("/v1/revoked-key", async (req, res) => {
|
148 |
const dbClient = new Database("AkenoXJs");
|
149 |
const collection = dbClient.collection("api_keys");
|
|
|
144 |
}
|
145 |
});
|
146 |
|
147 |
+
app.get("/test", authenticateApiKey, apiLimiter, async (req, res) => {
|
148 |
+
res.json({ message: "access key" });
|
149 |
+
})
|
150 |
+
|
151 |
app.post("/v1/revoked-key", async (req, res) => {
|
152 |
const dbClient = new Database("AkenoXJs");
|
153 |
const collection = dbClient.collection("api_keys");
|