fixed improper route in media gallery

This commit is contained in:
MattLeo 2025-12-09 13:48:02 -06:00
parent 8ca1cce26b
commit 5ea310b526

View File

@ -13,7 +13,7 @@ function MediaGallery({ kaNumber, token, onInsertMedia, isOpen, onToggle }) {
const fetchMedia = async () => { const fetchMedia = async () => {
try { try {
const response = await fetch(`http://localhost:9000/api/articles/${kaNumber}/media`, { const response = await fetch(`/api/articles/${kaNumber}/media`, {
headers: { headers: {
'Authorization': `Bearer ${token}` 'Authorization': `Bearer ${token}`
} }