Update index.js
Browse files
index.js
CHANGED
@@ -101,16 +101,31 @@ const specs = swaggerJsDoc(swaggerOptions);
|
|
101 |
|
102 |
const AllJsonReques = {
|
103 |
"AkenoXAPI": {
|
|
|
104 |
"ai": {
|
105 |
-
"
|
106 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
}
|
109 |
}
|
110 |
app.get("/alljson", async (req, res) => {
|
111 |
res.json(AllJsonReques);
|
112 |
-
|
113 |
});
|
|
|
114 |
app.delete("/api/v1/delete-key", async (req, res) => {
|
115 |
const dbClient = new Database("AkenoXJs");
|
116 |
const collection = dbClient.collection("api_keys");
|
|
|
101 |
|
102 |
const AllJsonReques = {
|
103 |
"AkenoXAPI": {
|
104 |
+
"akenox_date": new Date();,
|
105 |
"ai": {
|
106 |
+
"endpoint": "ai/google-gemini",
|
107 |
+
"params": "query",
|
108 |
+
"method": "GET",
|
109 |
+
"headers": "x-api-key",
|
110 |
+
"part2": {
|
111 |
+
"endpoint": "ai/copilot2-trip",
|
112 |
+
"params": "q",
|
113 |
+
"method": "GET",
|
114 |
+
"headers": "x-api-key",
|
115 |
+
},
|
116 |
+
"part3": {
|
117 |
+
"endpoint": "ai/gpt-old",
|
118 |
+
"params": "query",
|
119 |
+
"method": "GET",
|
120 |
+
"headers": "x-api-key",
|
121 |
+
}
|
122 |
}
|
123 |
}
|
124 |
}
|
125 |
app.get("/alljson", async (req, res) => {
|
126 |
res.json(AllJsonReques);
|
|
|
127 |
});
|
128 |
+
|
129 |
app.delete("/api/v1/delete-key", async (req, res) => {
|
130 |
const dbClient = new Database("AkenoXJs");
|
131 |
const collection = dbClient.collection("api_keys");
|