Rename endpoints for websearch

This commit is contained in:
Cohee
2024-06-19 22:37:51 +03:00
parent 75dfe87054
commit 8d5876c2c8
3 changed files with 10 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ class WebScraper {
const files = [];
for (const link of links) {
const result = await fetch('/api/serpapi/visit', {
const result = await fetch('/api/search/visit', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({ url: link }),
@@ -530,7 +530,7 @@ class YouTubeScraper {
async getScript(videoUrl, lang) {
const id = this.parseId(String(videoUrl).trim());
const result = await fetch('/api/serpapi/transcript', {
const result = await fetch('/api/search/transcript', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({ id, lang }),