mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-06 04:01:57 +02:00
chore(api): remove chromium code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type {VercelRequest, VercelResponse} from '@vercel/node';
|
||||
import ow from 'ow';
|
||||
|
||||
import {prepareChromium, tiktok} from '../lib';
|
||||
import {tiktok} from '../lib';
|
||||
|
||||
const SearchType = ['trend', 'cards'];
|
||||
|
||||
@@ -10,11 +10,6 @@ export default async (req: VercelRequest, res: VercelResponse) => {
|
||||
return res.status(500).json({
|
||||
'error': 'Missing SESSION',
|
||||
});
|
||||
} else if (!prepareChromium.isReady) {
|
||||
if (!prepareChromium.isRun) prepareChromium.exec();
|
||||
return res.status(410).json({
|
||||
'error': 'Please wait, we\'re preparing our environments',
|
||||
});
|
||||
}
|
||||
try {
|
||||
ow(req.query, ow.object.exactShape({
|
||||
|
||||
Reference in New Issue
Block a user