This commit is contained in:
Marek Lenczewski
2026-04-08 08:51:59 +02:00
parent 375a9cd386
commit a0c8ecaf27
12 changed files with 75 additions and 92 deletions

View File

@@ -1,7 +1,7 @@
const SERVER_URL = "http://marha.local:8000/videos";
const SERVER_BASE = "http://marha.local:8000";
browser.runtime.onMessage.addListener((video) => {
fetch(SERVER_URL, {
browser.runtime.onMessage.addListener(({ profileId, video }) => {
fetch(`${SERVER_BASE}/profiles/${profileId}/videos`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(video),