randydev commited on
Commit
70895e9
·
verified ·
1 Parent(s): 156baaf

Update plugins/copilot.js

Browse files
Files changed (1) hide show
  1. plugins/copilot.js +7 -0
plugins/copilot.js CHANGED
@@ -3,6 +3,7 @@ import { Copilot2Trip } from '../lib/scrapper.js';
3
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
4
  const CopilotRoutes = express.Router();
5
 
 
6
  /**
7
  * @swagger
8
  * /api/v1/ai/copilot2-trip:
@@ -16,6 +17,12 @@ const CopilotRoutes = express.Router();
16
  * description: The query to be processed.
17
  * schema:
18
  * type: string
 
 
 
 
 
 
19
  * responses:
20
  * 200:
21
  * description: Success
 
3
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
4
  const CopilotRoutes = express.Router();
5
 
6
+
7
  /**
8
  * @swagger
9
  * /api/v1/ai/copilot2-trip:
 
17
  * description: The query to be processed.
18
  * schema:
19
  * type: string
20
+ * - in: header
21
+ * name: x-api-key
22
+ * required: true
23
+ * description: API key for authentication
24
+ * schema:
25
+ * type: string
26
  * responses:
27
  * 200:
28
  * description: Success