fixed improper route in media gallery
This commit is contained in:
parent
8ca1cce26b
commit
5ea310b526
@ -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}`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user