diff --git a/src/middlewares/recaptcha.ts b/src/middlewares/recaptcha.ts index a5791120..34bb9bee 100644 --- a/src/middlewares/recaptcha.ts +++ b/src/middlewares/recaptcha.ts @@ -1,6 +1,5 @@ import { NextFunction, Request, Response } from "express"; import { URLSearchParams } from "url"; -// import fetch from "node-fetch"; const recaptcha = async (req: Request, res: Response, next: NextFunction) => { if (!req.body.recaptcha) { diff --git a/src/routes/docs.ts b/src/routes/docs.ts index 941e28de..7aaf0845 100644 --- a/src/routes/docs.ts +++ b/src/routes/docs.ts @@ -6,7 +6,6 @@ router.get("/get_video_link", async (req, res) => { try { if (!req.query.url) return res.status(400).send("400 Bad Request: no url provided!"); const url: any = req.query.url; - // const fetch = (await import('node-fetch')).default; const response = await fetch( url, { method: "GET"} diff --git a/src/routes/weekly.ts b/src/routes/weekly.ts index 2829d59d..ad8aebbe 100644 --- a/src/routes/weekly.ts +++ b/src/routes/weekly.ts @@ -7,8 +7,7 @@ const router = express.Router(); router.get("/cover", async (req, res) => { try { if (!req.query.url) return res.status(400).send("400 Bad Request: no url provided!"); - const url: any = req.query.url; - // const fetch = (await import('node-fetch')).default; + const url: any = req.query.url;g const response = await fetch( url, { method: "GET"}