fix: Add public API for Chrome extension (no login required) - New endpoints: /public/youtube/formats, /public/youtube/add - Update extension to use public API - Add contextMenus/notifications permissions
This commit is contained in:
@@ -93,7 +93,7 @@ async function fetchVideoInfo() {
|
||||
|
||||
try {
|
||||
const response = await fetch(
|
||||
`${serverUrl}/gommi_downloader_manager/ajax/queue/youtube_formats?url=${encodeURIComponent(currentUrl)}`,
|
||||
`${serverUrl}/gommi_downloader_manager/public/youtube/formats?url=${encodeURIComponent(currentUrl)}`,
|
||||
{ method: 'GET' }
|
||||
);
|
||||
|
||||
@@ -166,7 +166,7 @@ async function startDownload() {
|
||||
|
||||
try {
|
||||
const response = await fetch(
|
||||
`${serverUrl}/gommi_downloader_manager/ajax/queue/youtube_add`,
|
||||
`${serverUrl}/gommi_downloader_manager/public/youtube/add`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
||||
Reference in New Issue
Block a user