Update index.js
Browse files308 unmodified lines309310311312313314315316317308 unmodified lineslet regex = /https?:\/\/(www\.|v(t|m|vt)\.|t\.)?tiktok\.com/;if (!regex.test(url)) return res.json({ message: 'Invalid URL' });let data = await fetch(`https://tikwm.com/api/?url=` + url)if (!data.json()) return res.json({ message: 'API TO API KOID:v' });return res.json({result: data.json()})} catch (e) {console.log(e);308 unmodified lines309310311312313314315316317318308 unmodified lineslet regex = /https?:\/\/(www\.|v(t|m|vt)\.|t\.)?tiktok\.com/;if (!regex.test(url)) return res.json({ message: 'Invalid URL' });let data = await fetch(`https://tikwm.com/api/?url=` + url)console.log(data.json())if (!data.json()) return res.json({ message: 'API TO API KOID:v' });return res.json({result: data?.json()})} catch (e) {console.log(e);
index.js+2-1