This commit is contained in:
NotII
2025-03-23 23:38:45 +00:00
parent 102c65ebc6
commit edc220bc5d
5 changed files with 5 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ export default function BroadcastDialog({ open, setOpen }: BroadcastDialogProps)
formData.append('message', broadcastMessage);
}
const res = await fetch(`${API_URL}/storefront/broadcast`, {
const res = await fetch(`/api/storefront/broadcast`, {
method: 'POST',
headers: {
Authorization: `Bearer ${authToken}`,

View File

@@ -106,7 +106,7 @@ export default function ImportProductsModal({ open, setOpen, onImportComplete }:
const authToken = document.cookie.split("Authorization=")[1];
// Send to API
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/products/batch`, {
const response = await fetch(`/api/products/batch`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',