randydev commited on
Commit
ba5a114
·
1 Parent(s): 00760c8

remove terabox

Browse files
Files changed (2) hide show
  1. plugins/alldownloader.js +9 -98
  2. template.md +29 -0
plugins/alldownloader.js CHANGED
@@ -3,10 +3,8 @@ import { Database } from '../database/database.js';
3
  import {
4
  facebookdl,
5
  savefrom,
6
- mediafiredl,
7
  snapsave,
8
  tiktokdl,
9
- youtubedl,
10
  sfilemobi,
11
  capcutdl,
12
  PinterestDL,
@@ -17,20 +15,17 @@ import {
17
  InstagramDownloader,
18
  TeraboxDownloader,
19
  TeraboxV2Downloader,
20
- TeraboxV3Downloader,
21
- PinterestDownloader,
22
  XsearchDownloaderV2,
23
  InstagramDLV3,
24
  InstagramDLV2,
25
  InstagramDLV4,
26
  XInfoDownloaderV2,
27
- SeachTiktok,
28
  TelegramUseLog,
29
  TwitterDownloaderV2,
30
  } from '../lib/all.js';
31
 
32
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
33
- import { ApiKey } from '../models.js';
34
  const AllDlRoutes = express.Router();
35
 
36
  const dbClient = new Database("AkenoXJs");
@@ -503,36 +498,8 @@ AllDlRoutes.get('/api/v1/dl/sfilemobi-search', authenticateApiKey, apiLimiter, a
503
  }
504
  });
505
 
506
- /**
507
- * @swagger
508
- * /api/v1/dl/terabox-v3:
509
- * get:
510
- * summary: Terabox V3 Downloader
511
- * tags: [ALL-Downloader]
512
- * parameters:
513
- * - in: query
514
- * name: url
515
- * required: true
516
- * description: null
517
- * schema:
518
- * type: string
519
- * - in: header
520
- * name: x-api-key
521
- * required: true
522
- * description: API key for authentication
523
- * schema:
524
- * type: string
525
- * responses:
526
- * 200:
527
- * description: Success
528
- * 400:
529
- * description: Bad Request (e.g., missing or invalid URL)
530
- * 401:
531
- * description: Unauthorized (e.g., missing or invalid API key)
532
- * 500:
533
- * description: Internal Server Error
534
- */
535
- AllDlRoutes.get('/api/v1/dl/terabox-v3', authenticateApiKey, apiLimiter, async (req, res) => {
536
  try {
537
  const apiKey = req.headers['x-api-key'];
538
  const userAgent = req.headers['user-agent'];
@@ -572,38 +539,10 @@ AllDlRoutes.get('/api/v1/dl/terabox-v3', authenticateApiKey, apiLimiter, async (
572
  res.status(500).json({ error: error.message });
573
  }
574
  });
 
575
 
576
 
577
- /**
578
- * @swagger
579
- * /api/v1/dl/terabox-v2:
580
- * get:
581
- * summary: Terabox V2 Downloader
582
- * tags: [ALL-Downloader]
583
- * parameters:
584
- * - in: query
585
- * name: url
586
- * required: true
587
- * description: null
588
- * schema:
589
- * type: string
590
- * - in: header
591
- * name: x-api-key
592
- * required: true
593
- * description: API key for authentication
594
- * schema:
595
- * type: string
596
- * responses:
597
- * 200:
598
- * description: Success
599
- * 400:
600
- * description: Bad Request (e.g., missing or invalid URL)
601
- * 401:
602
- * description: Unauthorized (e.g., missing or invalid API key)
603
- * 500:
604
- * description: Internal Server Error
605
- */
606
- AllDlRoutes.get('/api/v1/dl/terabox-v2', authenticateApiKey, apiLimiter, async (req, res) => {
607
  try {
608
  const apiKey = req.headers['x-api-key'];
609
  const userAgent = req.headers['user-agent'];
@@ -647,38 +586,10 @@ AllDlRoutes.get('/api/v1/dl/terabox-v2', authenticateApiKey, apiLimiter, async (
647
  } catch (error) {
648
  res.status(500).json({ error: error.message });
649
  }
650
- });
651
 
652
- /**
653
- * @swagger
654
- * /api/v1/dl/terabox:
655
- * get:
656
- * summary: Terabox Downloader
657
- * tags: [ALL-Downloader]
658
- * parameters:
659
- * - in: query
660
- * name: url
661
- * required: true
662
- * description: null
663
- * schema:
664
- * type: string
665
- * - in: header
666
- * name: x-api-key
667
- * required: true
668
- * description: API key for authentication
669
- * schema:
670
- * type: string
671
- * responses:
672
- * 200:
673
- * description: Success
674
- * 400:
675
- * description: Bad Request (e.g., missing or invalid URL)
676
- * 401:
677
- * description: Unauthorized (e.g., missing or invalid API key)
678
- * 500:
679
- * description: Internal Server Error
680
- */
681
- AllDlRoutes.get('/api/v1/dl/terabox', authenticateApiKey, apiLimiter, async (req, res) => {
682
  try {
683
  const apiKey = req.headers['x-api-key'];
684
  const userAgent = req.headers['user-agent'];
@@ -723,7 +634,7 @@ AllDlRoutes.get('/api/v1/dl/terabox', authenticateApiKey, apiLimiter, async (req
723
  res.status(500).json({ error: error.message });
724
  }
725
  });
726
-
727
 
728
  /**
729
  * @swagger
 
3
  import {
4
  facebookdl,
5
  savefrom,
 
6
  snapsave,
7
  tiktokdl,
 
8
  sfilemobi,
9
  capcutdl,
10
  PinterestDL,
 
15
  InstagramDownloader,
16
  TeraboxDownloader,
17
  TeraboxV2Downloader,
18
+ TeraboxV3Downloader,r,
 
19
  XsearchDownloaderV2,
20
  InstagramDLV3,
21
  InstagramDLV2,
22
  InstagramDLV4,
23
  XInfoDownloaderV2,
 
24
  TelegramUseLog,
25
  TwitterDownloaderV2,
26
  } from '../lib/all.js';
27
 
28
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
 
29
  const AllDlRoutes = express.Router();
30
 
31
  const dbClient = new Database("AkenoXJs");
 
498
  }
499
  });
500
 
501
+
502
+ /* AllDlRoutes.get('/api/v1/dl/terabox-v3', authenticateApiKey, apiLimiter, async (req, res) => {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  try {
504
  const apiKey = req.headers['x-api-key'];
505
  const userAgent = req.headers['user-agent'];
 
539
  res.status(500).json({ error: error.message });
540
  }
541
  });
542
+ */
543
 
544
 
545
+ /* AllDlRoutes.get('/api/v1/dl/terabox-v2', authenticateApiKey, apiLimiter, async (req, res) => {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
546
  try {
547
  const apiKey = req.headers['x-api-key'];
548
  const userAgent = req.headers['user-agent'];
 
586
  } catch (error) {
587
  res.status(500).json({ error: error.message });
588
  }
589
+ }); */
590
 
591
+
592
+ /* AllDlRoutes.get('/api/v1/dl/terabox', authenticateApiKey, apiLimiter, async (req, res) => {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
  try {
594
  const apiKey = req.headers['x-api-key'];
595
  const userAgent = req.headers['user-agent'];
 
634
  res.status(500).json({ error: error.message });
635
  }
636
  });
637
+ */
638
 
639
  /**
640
  * @swagger
template.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @swagger
3
+ * /api/v1/dl/terabox-v3:
4
+ * get:
5
+ * summary: Terabox V3 Downloader
6
+ * tags: [ALL-Downloader]
7
+ * parameters:
8
+ * - in: query
9
+ * name: url
10
+ * required: true
11
+ * description: null
12
+ * schema:
13
+ * type: string
14
+ * - in: header
15
+ * name: x-api-key
16
+ * required: true
17
+ * description: API key for authentication
18
+ * schema:
19
+ * type: string
20
+ * responses:
21
+ * 200:
22
+ * description: Success
23
+ * 400:
24
+ * description: Bad Request (e.g., missing or invalid URL)
25
+ * 401:
26
+ * description: Unauthorized (e.g., missing or invalid API key)
27
+ * 500:
28
+ * description: Internal Server Error
29
+ */