diff --git a/README.md b/README.md index 061293f9..10a4434e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Video TikTok Downloader using 🧰 NodeJS with Watermark and Non-Watermark! 3. Add environment variable with `REDIS_URL` as the name, and fill the value using your redis url. ## ☁️ Endpoints -Available on [Wiki](https://github.com/hansputera/tiktok-dl/wiki/Endpoints) +Check [this](https://docs.tiktok-dl.tslab.site) out. ## 🔥 Credits + Source @@ -37,12 +37,12 @@ Available on [Wiki](https://github.com/hansputera/tiktok-dl/wiki/Endpoints) - [TTDownloader](https://ttdownloader.com) - [Musically Down](https://musicaldown.com) - [DLTik](https://dltik.com/) -- [TTSave](https://ttsave.app) (Won't work) +- [TTSave](https://ttsave.app) - [DDDTik](https://dddtik.com) - [TikDown](https://tikdown.org) - [DownTik](https://downtik.net) - [LoveTik](https://lovetik.com) - [Tokup](https://tokup.app) -- [TikTokDownloaderOne](https://tiktokdownloader.one) (TTSave alternative) +- [TikTokDownloaderOne](https://tiktokdownloader.one) 🧗‍♀️ Contribution(s) are welcome! diff --git a/api/download.ts b/api/download.ts index 3705ef24..186a1dcb 100644 --- a/api/download.ts +++ b/api/download.ts @@ -27,7 +27,7 @@ export default async (req: VercelRequest, res: VercelResponse) => { ow.optional.boolean : ow.optional.string, })); - const provider = getProvider((req.query.type || req.body.type) ?? 'random'); + const provider = getProvider((req.query && req.query.type || req.body && req.body.type) ?? 'random'); if (!provider) { return res.status(400).json({ 'error': 'Invalid provider',