randydev commited on
Commit
2a61428
·
verified ·
1 Parent(s): 6abb115

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -0
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");